Foundation of Artificial Intelligence - Lecture 1
Algorithm --> Data Structure
No obvious solution ==> Algorithm engineers do it If there is a clear implementation path ==> the person who develops the project will do it
What's the Algorithm?
{Ace of hearts, 10 of spades, 3 of spades, 9 of hearts, 9 clubs, 4 of diamonds, J}
First: Hearts> Diamonds> Spades> Clubs Second: Numbers are arranged from small to large
- Some people put the colors together first
- Some people arrange the size first, and extract the colors one by one
\[ 1024 --> 10^3 --> 1k \] \[ 1024 * 1024 --> 10^6 --> 1M \] \[ 1024 * 1024 * 1024 --> 10^9 --> 1G \]
1 |
|
2.6G Hz
1 |
|
1 |
|
1 |
|
1 |
|
\[ Time(N) - Time(N-1) = constant \] \[ Time(N-1) - Time(N-2) = constant \] \[ Time(N-2) - Time(N-3) = constant \] \[ Time(2) - Time(1) = constant \] \[ Time(N) - Time(1) == (N-1)constant \] \[ Time(N) == (N-1)constant + Time(1) \] \[ Time(N) == N * constant + (Time(1) - constant) \]
Foundation of Artificial Intelligence - Lecture 1