Functional Problem Solving (CSC 151 2015S) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] - [Calendar]
Current: [Assignment] [EBoard am] [EBoard pm] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards am] [EBoards pm] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014F)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Book Office Hours] - [Issue Tracker (Course)]
Overview
None at the moment.
None at the moment.
Three sorting algoritms
Key operations
Improving
;;; Procedure:
;;; sort
;;; Parameters:
;;; vec, vector
;;; may-precede?, a binary predicate
;;; get-key, a unary operation
;;; Purpose:
;;; Create a new vector that contains the values in vec,
;;; in order from smallest to largest.
;;; Produces:
;;; sorted, a vector
;;; Postconditions:
;;; See the preconditions for binary search. The vector
;;; should meet those preconditions.