University of Oregon

Updated Modules


Visualizations for Searching and Sorting Algorithms

The lab modules for Chapter 4 (“Journey of 1000 Miles”) and Chapter 5 (“Divide and Conquer”) have been updated to include methods for drawing arrays on the RubyLabs Canvas. When an array is on the canvas, the sort algorithms described in those chapters will update the canvas to show how array elements are moved around by the algorithm.

The following document explains how to call a method that displays an array on the canvas and has examples of searching and sorting visualizations: