Algorithms and OOD (CSC 207 2014S) : EBoards
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Partners] [Readings]
Reference: [Java 7 API] [Java Code Conventions] [GNU Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2013F (Rebelsky)] [CSC 207 2013S (Walker)] [CSC 207 2011S (Weinman)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Overview
indexOfSmallestsmall when order.compare(vals[i], vals[small]) < 0
then it is stable small when order.compare(vals[i], vals[small]) <= 0
then it is NOT stable Break down the array:
7 3 2 8 1 5 6 4
7 3 2 8 1 5 6 4
7 3 2 8 1 5 6 4
Build it back up:
3 7 2 8 1 5 4 6
2 3 7 8 1 4 5 6
1 2 3 4 5 6 7 8
[Sam notes that recursion doesn't quite work this way. We do the left subarray completely before we do the right subarray.]
containsadd
removefindPlaceint level; [Sam notes that you can get this with next.length.]String value;SkipLO[] nexts;Constructor (int l, String str) [Sam notes there's an interesting design decision: Does the list class deside on the level, or does the node constructor decide upon the level?]
level = l; [If the node computes the level, this would be computeLevel()]value = str;nexts = new SkipLO[level];Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Partners] [Readings]
Reference: [Java 7 API] [Java Code Conventions] [GNU Code Conventions]
Related Courses: [CSC 152 2006S (Rebelsky)] [CSC 207 2013F (Rebelsky)] [CSC 207 2013S (Walker)] [CSC 207 2011S (Weinman)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] [Issue Tracker (Course)] [Issue Tracker (Textbook)]
Copyright (c) 2013-14 Samuel A. Rebelsky.

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this
license, visit http://creativecommons.org/licenses/by/3.0/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.