This easy-to-follow textbook provides a student-friendly introduction to programming and algorithms. Although R is used as the language of choice for all programs, strict assumptions are avoided in the explanations in order for these to remain applicable to other programming languages.