## Real-World Algorithms

by Louridas

### Instructor Requests

Algorithms are what we do in order not to have to do something. Algorithms consist of instructions to carry out tasksâ€”usually dull, repetitive ones. Starting from simple building blocks, computer algorithms enable machines to recognize and produce speech, translate texts, categorize and summarize documents, describe images, and predict the weather. A task that would take hours can be completed in virtually no time by using a few lines of code in a modern scripting program. This book offers an introduction to algorithms through the real-world problems they solve. The algorithms are presented in pseudo-code and can readily be implemented in a computer language.

The book presents algorithms simply and accessibly, without overwhelming readers or insulting their intelligence. Readers should be comfortable with mathematical fundamentals and have a basic understanding of how computers work; all other necessary concepts are explained in the text. After presenting background in pseudocode conventions, basic terminology, and data structures, chapters cover compression, cryptography, graphs, searching and sorting, hashing, classification, strings, and chance. Each chapter describes real problems and then presents algorithms to solve them. Examples illustrate the wide range of applications, including shortest paths as a solution to paragraph line breaks, strongest paths in elections systems, hashes for song recognition, voting power Monte Carlo methods, and entropy for machine learning. Real-World Algorithms can be used by students in disciplines from economics to applied sciences. Computer science majors can read it before using a more technical text.

Expand/Collapse All
Contents (pg. v)
Preface (pg. ix)
1 Stock Spans (pg. 1)
2 Exploring the Labyrinth (pg. 25)
3 Compressing (pg. 59)
4 Secrets (pg. 93)
5 Split Secrets (pg. 125)
6 Tasks in Order (pg. 149)
7 Lines, Paragraphs, Paths (pg. 169)
8 Routing, Arbitrage (pg. 185)
9 Whatâ€™s Most Important (pg. 211)
10 Voting Strengths (pg. 227)
11 Brute Forces, Secretaries, and Dichotomies (pg. 247)
12 A Menagerie of Sorts (pg. 285)
13 The Cloakroom, the Pigeon, and the Bucket (pg. 329)
14 Bits and Trees (pg. 377)
15 Stringing Along (pg. 421)
16 Leave to Chance (pg. 449)
Bibliography (pg. 489)
Index (pg. 501)

#### Panos Louridas

Panos Louridas is Associate Professor in the Department of Management Science and Technology at the Athens University of Economics and Business.

Instructors Only
You must have an instructor account and submit a request to access instructor materials for this book.
 eTextbook Go paperless today! Available online anytime, nothing to download or install. 4 months / \$22.50 12 months / \$31.50