Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This week's lab is a bit of a potpourri of topics

...

:

Anchor
quicksort
quicksort
h1. Quicksort

Quicksort is the most common sorting algorithm in use today.  In light of its technological impact, it's good to know how it works. 

...

===================================================================================================================

Anchor
vararg
vararg
h2. Variable Argument Lists

We discussed this before in lab and lecture, but it's worth revisiting to make sure everyone understands it.

...

===================================================================================================================

Anchor
visitors
visitors
h2. A Tale of Two Visitors

You were shown two different styles of writing visitors, with and without input parameters.    Why two different techniques?

...

===================================================================================================================

Anchor
search
search
h2. Binary Search in a Sorted Array

The recursive technique used to find a value in a sorted array is very useful in many situations. 

...

===================================================================================================================

Anchor
insert
insert
h2. Insertion into a Doubly-linked List

 Inserting a node into a doubly-linked list, ala BiList, isn't difficult, but it does take care to make sure that one has the right values for the node references at any given moment.    Here's a pictoral explanation of the process:

...