Elementary Algorithms
“All knowledge can be thought of as either declarative or imperative. Declarative knowledge is composed of statements of fact. Unfortunately, it doesn’t tell us how to find that certain fact. Imperative knowledge is the HOW TO knowledge, or recipes for deducing information.”
John Guttag
Get Maximum or Minimum element
Linear Search
In C
In Java
Binary Search
In C
In Java
Bubble Sort
In C
In Java
Insertion Sort
In C
In Java
Selection Sort
In C
Quicksort
In Java
Greedy Change Algorithm
In C
In Java
Euclid’s Algorithm
In C (Recursive)
In C (Non-recursive)
In Java
Written on March 16, 2015