Functional Problem Solving (CSC 151 2016S) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [Remote] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2016S)] [Davis (2013F)] [Rebelsky (2015F)] [Weinman (2014F)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Held: Wednesday, 27 April 2016
Back to Outline 46 - Analyzing Procedures. On to Outline 48 - Association Lists.
Summary
We consider the general problem of searching and binary search, one of the most efficient algorithms for searching.
Related Pages
Overview
Administrivia
Suppose we have data for various students on campus: Last Name (string), First Name (string), Graduation Year (integer), Box Number (integer), and Phone number (string). We might search by any of the four criteria (and by other criteria) and we might therefore order in various ways.
(define people
(vector
("Aanderson" "Aan" 2017 4114 "x4410")
("Brown" "Bruin" 2016 8123 "x9000")
("Doe" "J" 2018 9999 "none")
("Smith" "Kieran" 2015 4112 "x9231")
("Taylor" "Mic" 2017 1234 "x0001")))