Difference between revisions of "CSC103: DT's Notes 1"
Line 806: | Line 806: | ||
What is important for us is to see that with this simple example can see that we can create a ''code'' where we replace sentences or words by numbers, and some numbers can represent different sentences, but because of the context in which they are used, one can ''decode'' the dialog and figure out what was said. | What is important for us is to see that with this simple example can see that we can create a ''code'' where we replace sentences or words by numbers, and some numbers can represent different sentences, but because of the context in which they are used, one can ''decode'' the dialog and figure out what was said. | ||
+ | Let's go one step further and add a counter next to each of the different sentences. Our dialog between our two interlocutors becomes | ||
+ | |||
+ | 00: 01 02 | ||
+ | 01: 02 | ||
+ | 02: 03 06 | ||
+ | 03: 01 05 | ||
+ | |||
+ | All we have done is simply put line numbers in front of each group of numbers said by the two people. It doesn't appear that it's helping us much, but it is actually a big steps, because now we can refer to each line by a number, and we get closer to creating an ''algorithm''<ref name="algorithm">Algorithm, in ''Wikipedia'', retrieved Oct. 3, 2012, from http://en.wikipedia.org/wiki/Algorithm</ref>. | ||
{| style="width:100%; background:#FFC340" | {| style="width:100%; background:#FFC340" |
Revision as of 19:32, 3 October 2012
--© D. Thiebaut 08:10, 30 January 2012 (EST)