Rakhmatjon Khasanov With the help of Harvard ocw
Download 0.97 Mb.
|
Lecture0
Introduction Rakhmatjon Khasanov With the help of Harvard OCW Representation 0 1 2 3 4 5 6 7 8 9 0 1
Representation 123
100 10
1 100*1
10*2 1*3
+ + Representation 000 100
10 1 Representation 001 100
10 1 Representation 002 100
10 1 Representation 003 100
10 1 Representation 004 100
10 1 Representation 005 100
10 1 Representation 006 100
10 1 Representation 007 100
10 1 Representation 007 100
10 1 Representation 009 100
10 1 Representation 010 100
10 1 Representation 000 100
10 1 Representation 000 102
101 100
Representation 000
102 101
100 Representation 000 22
20 Representation 000 4
1 Representation 001 4
1 Representation 010 4
1 Representation 011 4
1 Representation 100 4
1 Representation 101 4
1 Representation 110 4
1 Representation 111 4
1 Representation Bit Representation Bit Bit
Bit Bit
Bit Bit
Bit Bit
Representation Byte
Representation ASCII
(American Standard Code for Information Interchange) Representation Representation Representation Representation Representation Representation Representation Unicode Representation Representation Representation Representation Representation Representation Representation Representation Representation Pseudocode Representation 1 Pick up phone book 2 Open to middle of phone book 3 Look at page 4 If Smith is on page 6 Else if Smith is earlier in book 7 Open to middle of left half of book 8 Go back to line 3 9 Else if Smith is later in book 10 Open to middle of right half of book 11 Go back to line 3 12 Else
13 Quit 1 Pick up phone book 2 Open to middle of phone book 4 If Smith is on page 5 Call Mike 6 Else if Smith is earlier in book 7 Open to middle of left half of book 8 Go back to line 3 9 Else if Smith is later in book 10 Open to middle of right half of book 11 Go back to line 3 12 Else 13 Quit
1 Pick up phone book 2 Open to middle of phone book 3 Look at page 4 If Smith is on page 5 Call Mike 6 Else if Smith is earlier in book 7 Open to middle of left half of book 8 Go back to line 3 9 Else if Smith is later in book 10 Open to middle of right half of book 11 Go back to line 3 12 Else
13 Quit 1 Pick up phone book 2 Open to middle of phone book 3 Look at page 4 If Smith is on page 5 Call Mike 6 Else if Smith is earlier in book 7 Open to middle of left half of book 8 Go back to line 3 9 Else if Smith is later in book 10 Open to middle of right half of book 11 Go back to line 3 12 Else 13 Quit
1 Pick up phone book 2 Open to middle of phone book 3 Look at page 4 If Smith is on page 5 Call Mike 6 Else if Smith is earlier in book 7 Open to middle of left half of book 8 Go back to line 3 9 Else if Smith is later in book 10 Open to middle of right half of book 11 Go back to line 3 12 Else
13 Quit Representation ● functions ● conditions ● Boolean expressions ● loops
● variables ● threads ● events ● ...
Representation Flow Chart Scratch Download 0.97 Mb. Do'stlaringiz bilan baham: |
ma'muriyatiga murojaat qiling