390 likes | 525 Views
1 4 3 5 9 7 2. 1 4 3 5 9 7 2. Which one is the biggest number?. 1 4 3 5 9 7 2. 1 4 3 5 9 7 2. How do you know?. 1 4 3 5 9 7 2. How would you instruct the computer to find out?. 1 4 3 5 9 7 2. Our program would scan the numbers left to right.
E N D
1 4 3 5 9 7 2 Which one is the biggest number?
1 4 3 5 9 7 2 How do you know?
1 4 3 5 9 7 2 How would you instruct the computer to find out?
1 4 3 5 9 7 2 Our program would scan the numbers left to right.
1 4 3 5 9 7 2 Our program would scan the numbers left to right.
1 4 3 5 9 7 2 We need to start somewhere.
1 4 3 5 9 7 2 We start at the beginning.
1 4 3 5 9 7 2 The first number is the largest we’ve seen.
1 4 3 5 9 7 2 The first number is the largest we’ve seen. max
1 4 3 5 9 7 2 The first number is the largest we’ve seen. max
1 4 3 5 9 7 2 The first number is the largest we’ve seen. 1 max
1 4 3 5 9 7 2 We move on. 1 max
1 4 3 5 9 7 2 We move on. 1 max
1 4 3 5 9 7 2 Hey, that’s a bigger number than ours! 1 max
1 4 3 5 9 7 2 Let’s take it. 1 max
1 4 3 5 9 7 2 Let’s take it. 1 max
1 4 3 5 9 7 2 Let’s take it. 4 max
1 4 3 5 9 7 2 We move on. 4 max
1 4 3 5 9 7 2 We move on. 4 max
1 4 3 5 9 7 2 This number doesn’t look interesting. 4 max
1 4 3 5 9 7 2 So we move on. 4 max
1 4 3 5 9 7 2 So we move on. 4 max
1 4 3 5 9 7 2 This number is better than ours. 4 max
1 4 3 5 9 7 2 Let’s take it. 4 max
1 4 3 5 9 7 2 Let’s take it. 4 max
1 4 3 5 9 7 2 Let’s take it. 5 max
1 4 3 5 9 7 2 And we move on. 5 max
1 4 3 5 9 7 2 We find a bigger number… 5 max
1 4 3 5 9 7 2 We find a bigger number… 9 max
1 4 3 5 9 7 2 The next number is not interesting… 9 max
1 4 3 5 9 7 2 And neither is the next one… 9 max
1 4 3 5 9 7 2 And we’re out of numbers. 9 max
1 4 3 5 9 7 2 We checked them all. 9 max
1 4 3 5 9 7 2 Each one once. 9 max
1 4 3 5 9 7 2 And this is the largest number we’ve seen. 9 max
1 4 3 5 9 7 2 So this is max. 9 max
1 4 3 5 9 7 2 Way to go, Max! 9 max