Algorithms

Spring 2011
course
navigation

Jan 25

plagiarism and copyright

big O notation

wikipedia: Big_O_notation
Explain :
f ∈ O(g) f ∈ Ω(g) f ∈ Θ(g)
Discuss a few of the homework problems :

sorting

First discuss algorithms and O() runtime.
Second look at specifics :

next

Textbook chapter 2 :
C programming :
Here's a short C program : #include <stdio.h> #include <math.h> int main(){ int i; // Declaring an integer. for (i=0; i<10; i++){ // A typical loop printf(" %3i %8.5f \n", i, sqrt(i)); } }
And here's to run it :
$ gcc sqrt.c -o sqrt $ ./sqrt 0 0.00000 1 1.00000 2 1.41421 3 1.73205 4 2.00000 5 2.23607 6 2.44949 7 2.64575 8 2.82843 9 3.00000
http://cs.marlboro.edu/ courses/ spring2011/algorithms/ notes/ Jan_25
last modified Tuesday January 25 2011 12:05 pm EST

attachments [paper clip]

     name last modified size
[COD]sort.c Jan 25 2011 12:16 am 2.81kB    sort.py Jan 25 2011 12:16 am 4.39kB [COD]sqrt.c Jan 25 2011 12:16 am 191B