Algorithms: Difference between revisions

(Created page with "Algorithms ==Sorting== Given: compare(a,b) to compare 2 numbers. Goal: Sort a list of numbers from smallest to largest. ===O(n^2) Algorithms=== ====Bubble Sort==== ====Insert...")
 
Line 4: Line 4:
Given: compare(a,b) to compare 2 numbers.
Given: compare(a,b) to compare 2 numbers.
Goal: Sort a list of numbers from smallest to largest.
Goal: Sort a list of numbers from smallest to largest.
===O(n^2) Algorithms===
===<math>O(n^2)</math> Algorithms===
====Bubble Sort====
====Bubble Sort====
====Insertion Sort====
====Insertion Sort====