Preface: Magic in the Stone
CS105: Great Insights in Computer Science
Preface: Magic in the Stone CS105: Great Insights in Computer - - PowerPoint PPT Presentation
Preface: Magic in the Stone CS105: Great Insights in Computer Science Welcome! John Robert Yaros (Bobby) yaros@cs.rutgers.edu Office: Hill Center 410 Office hours by appointment Welcome!
CS105: Great Insights in Computer Science
interactions with computers.
“Computer Science is no more about computers than astronomy is about telescopes” -Edsger Dijkstra
technology?
Computers and Their Application
Computing for Math and Sciences
Application for Business
will be programming in my career, or I plan
Science
world?
Society
science its own academic discipline?
Science
science its own academic discipline?
history/fundaments of how computers work (processor architecture?) and spend a lot
behind certain programs - why they are the way they are - and design a few basic programs.”
Microsoft office applications (excel, word, etc) and some insight for MatLab and SPSS”
will be added in class
frequency DB
set it to DB
bookstores.
popular clicker at Rutgers)
attendance, reading comprehension quizzes, straw polls.
http://www.iclicker.com/
you can answer by using your iClicker.
8 out of 10 if you get them all wrong, 10 out of 10 if you get them all right
and all right becomes 7 points out of 10
the semester and anyone who has clicked but is not present in class will lose all participation points throughout the semester up to that day.
programming assignments
them
homework questions.
class is about
Preface: Magic in the Stone What does the title mean? Chapter 1: Nuts and Bolts From physics to bits. Chapter 2: Universal Building Blocks From logic gates to a computer.
Chapter 3: Programming Giving the computer instructions. Chapter 4: How Universal Are Turing Machines? How many kinds of computation are there? Chapter 5: Algorithms and Heuristics Solving some (hard?) problems.
Chapter 6: Memory: Information and Secret Codes Bits as messages. Chapter 7: Speed: Parallel Computers Computers working together.
Chapter 8: Computers That Learn and Adapt Can computers exceed their programming? Chapter 9: Beyond Engineering Programs that evolve.
1977: “There is no reason for any individual to have a computer in his home.” – Ken Olsen Today: Cell phone? PDA? Computers at home? Laptop? Video games? Digital camera?
computer science in one word, it would be “reduction”.
them to simpler problems.
Layers): application, presentation, session, transport, network, data link, physical.
computational, algorithmic, implementation.
application, high-level language, machine language, logic blocks, logic gates, physical.
disk, RAM, cache, registers.
North American retail stores.
codes: checks, photostamps, IR remotes
gum (1974).
point of sale by 12-digit numbers.
sequences so they can be read quickly and easily by machine.
the next level.
for error checking. Example:
(first, third, fifth, etc.) together and multiply by three.
positions (second, fourth, sixth, etc.) to the result.
multiple of ten. The result is the check digit.
set evensum to d2+d4+d6+d8+d10 set oddsum to d1+d3+d5+d7+d9+d11 set checkdigit to (0-(3*oddsum+evensum)) mod 10
01660000070 01660000070
even-digit sum: 1+6+0+0+7=14
subtract from mult of 10=40-32=8 all are two digits different now
plus the sum of the even position digits (including the check digit) is 0 mod 10.
things wrap around (like an odometer). Mod 10 means we only pay attention to the last digit in the number.
00000?
number to a 12-digit number. Next: bits.
0: 0001101 1: 0011001 2: 0010011 3: 0111101 4: 0100011
Digits encoded as 7-bit patterns, chosen to be:
ghijkl Last 6 digits have 0s and 1s reversed!
5: 0110001 6: 0101111 7: 0111011 8: 0110111 9: 0001011
a zero as a space.
(rev)
a check digit