SlideShare a Scribd company logo
1 of 36
1
CS150 Fall 2005: 1. Introduction
David Evans
http://www.cs.virginia.edu/evans
CS150 Spring 2007
University of Virginia
Computer Science
Class 1:
Introduction
2
1. Introduction
What is
Computer Science?
3
1. Introduction
Let AB and CD be the two given numbers
not relatively prime. It is required to find the
greatest common measure of AB and CD.
If now CD measures AB, since it also
measures itself, then CD is a common
measure of CD and AB. And it is manifest
that it is also the greatest, for no greater
number than CD measures CD.
Euclid’s Elements, Book VII, Proposition 2 (300BC)
4
1. Introduction
The note on the inflected line is
only difficult to you, because it is so
easy. There is in fact nothing in it,
but you think there must be some
grand mystery hidden under that
word inflected!
Whenever from any point
without a given line, you draw a long
to any point in the given line, you
have inflected a line upon a given
line. Ada Byron (age 19), letter to Annabella
Acheson (explaining Euclid), 1834
5
1. Introduction
By the word operation, we mean any process
which alters the mutual relation of two or more
things, be this relation of what kind it may.
This is the most general definition, and would
include all subjects in the universe...
Supposing, for instance, that the fundamental
relations of pitched sounds in the science of
harmony and of musical composition were
susceptible of such expression and
adaptations, the engine might compose
elaborate and scientific pieces of music of any
degree of complexity or extent.
Ada Byron, 1843
6
1. Introduction
What is the
difference
between Euclid
and Ada?
“It depends on what your
definition of ‘is’ is.”
Bill Gates (at Microsoft’s
anti-trust trial)
7
1. Introduction
Geometry vs. Computer Science
• Geometry (mathematics) is about
declarative knowledge: “what is”
If now CD measures AB, since it also measures itself,
then CD is a common measure of CD and AB
• Computer Science is about imperative
knowledge: “how to”
Computer Science has little to do with
beige (or translucent blue) boxes called
“computers” and is not a real science.
8
1. Introduction
Computer Science
“How to” knowledge:
• Ways of describing information
processes (computations)
• Ways of predicting properties of
information processes
Language
Logic
What kinds of things do we want to predict?
9
1. Introduction
Science, Engineering, Other?
10
1. Introduction
Science?
• Understanding Nature through
Observation
– About real things like bowling balls, black
holes, antimatter, electrons, comets, etc.
• Math and Computer Science are about
fake things like numbers, graphs,
functions, lists, etc.
– Computer Science is a useful tool for doing
real science, but not a real science
11
1. Introduction
Engineering?
“Engineering is design under
constraint… Engineering is synthetic
- it strives to create what can be, but
it is constrained by nature, by cost,
by concerns of safety, reliability,
environmental impact,
manufacturability, maintainability and
many other such 'ilities.' ...”
William Wulf
12
1. Introduction
Apollo Guidance Computer, 1969
1 Cubic Foot
Why did they need to fit the
guidance computer in the
rocket?
13
1. Introduction
Measuring Computers
• 1 bit = smallest unit of information
– True or False
– 0 or 1
– If we start with 2 possible choices, and get 1
bit, we can eliminate one of the choices
14
1. Introduction
How much power?
• Apollo Computer: 30720 bits of changeable memory
• Lab machines have 1 GB (RAM)
– 1 Gigabyte = 1024 Megabytes,
1 Megabyte = 1024 Kilobytes,
1 Kilobyte = 1024 Bytes,
1 Byte = 8 bits
> (* 1024 1024 1024 8)
8589934592 ~ 8.6 Billion bits
> (round (/ (* 1024 1024 1024 8) 30720))
279620
If Apollo Guidance Computer power is 1 inch, you have 4.4 miles!
You have 105 404 times more power than AGC
You will understand this
notation soon…but don’t worry
if you don’t now
15
CS150 Fall 2005: 1. Introduction
0
10,000,000
20,000,000
30,000,000
40,000,000
50,000,000
60,000,000
70,000,000
80,000,000
1
9
6
9
1
9
7
2
1
9
7
5
1
9
7
8
1
9
8
1
1
9
8
4
1
9
8
7
1
9
9
0
1
9
9
3
1
9
9
6
1
9
9
9
2
0
0
2
2
0
0
5
2
0
0
8
Computing Power 1969-2008
(in Apollo Control Computer Units)
Moore’s “Law”: computing power
roughly doubles every 18 months!
16
1. Introduction
Constraints Computer Scientists Face
• Not like those for engineers:
– Cost, weight, physics, etc.
– If ~20 Million times what people had in 1969
isn’t enough for you, wait until 2010 and you
will have 80 Million times…
• More like those for Musicians and Poets:
– Imagination and Creativity
– Complexity of what we can understand
17
1. Introduction
So, what is computer science?
• Science
– No: its about fake things like numbers, not
about observing and understanding nature
• Engineering
– No: we don’t have to deal with engineering-
type constraints
• Liberal Art
18
1. Introduction
Liberal Arts: ~1100
• Illiberal Arts
– arts for the non-free: pursued for economic
reasons
• Liberal Arts
– arts for the free: pursued for intrinsic reasons
19
1. Introduction
The Liberal Arts
Trivium (3 roads) Quadrivium (4 roads)
Grammar
study of meaning in
written expression
Rhetoric
comprehension
of discourse
Logic
argument
for
discovering
truth
Arithmetic
Geometry
quantification
of space
Music
number
in time
Astronomy
We will see all of these in this class!
20
1. Introduction
Course
Expectations
21
1. Introduction
Course Roadmap
Computer Science
from Euclid and Ada
to
Quantum Computing
and
the World Wide Web
1st Class
PS 7-8
Lecture
PS 1-6
Liberal
Arts
(Intellectual)
Illiberal
Arts
($$$$)
22
1. Introduction
Like Drinking from a Firehose
It may hurt a little bit, and a lot of water will
go by you, but you won’t go away thirsty!
Don’t be overwhelmed!
You will do fine.
23
1. Introduction
Books
Computational Thinking
A Whirlwind Introduction
to the Third Millennial Liberal Art
from Ada and Euclid
to Quantum Computing
and the World Wide Web
“GEB”
New Book!: written for course
Chapters 2 and 3 out today
Bonuses for helping me improve it:
- Less pretentious title (?)
- More exciting cover
- Notice any mistakes
- Improve the writing or presentation
“Course Book”
24
1. Introduction
Help Available
• Me: David Evans (Call me “Dave” or “Coach”)
– Office Hours will be posted (after your surveys)
– Always available by email, if I don’t reply in 24
hours, send again and complain
• Assistant Coaches: Richard Hsu and Kinga Dobolyi
– Staffed lab hours in Small Hall
– Upcoming lab hours: Thursday 6-9pm; Friday after class
• Web site: http://www.cs.virginia.edu/cs150
– Everything goes on the web, you should visit it often
• Your classmates (read the course pledge
carefully!)
25
1. Introduction
What I Expect of You
1. Everything on the Course Pledge
– You should actually read it not just sign it
(you will lose points on PS1 if your
submission reveals that you didn’t read it!)
2. You are a “Jeffersonian Student”
1.Believe knowledge is powerful
2.Interested in lots of things, ahead of your time
3.Want to use what you learn to do good things
4.Care more about what you learn than grades
and degree requirements
26
1. Introduction
Background Expected
• Language:
– Reasonable reading and writing in English
– Understanding of subject, verb and object
• Math:
– Numbers, add, subtract, multiply, divide
– Exponentiation, logarithms (we will review)
• Logic: and, or, not
• Computer Literacy: read email, browse web
If I ever appear to expect anything else, stop me!
27
1. Introduction
A Course for Everyone!
• CLAS, SEAS, Commerce, Arch, etc.
• 1st, 2nd, 3rd, 4th, 5th Years, Community
Scholars, Faculty
• No background expected…but challenging
even for students with lots of previous CS
courses
• Computer Science (future-) majors…but
worthwhile even if you don’t take another
CS course
28
1. Introduction
First Main Theme:
Recursive Definitions
29
1. Introduction
What is the longest word
in the English language?
30
1. Introduction
According to Guinness
floccipoccinihilipilification
the act of rendering useless
31
1. Introduction
Making Longer Words
antifloccipoccinihilipilification
the act of rendering not useless
antiantifloccipoccinihilipilification
the act of rendering useless
32
1. Introduction
Language is Recursive
No matter what word you think is the
longest word, I can always make up a
longer one!
word ::= anti-word
If you have a word, you can always make up
a new word by adding anti in front. Since
the result is a word, you can make a longer
new word by adding anti- in front again.
33
1. Introduction
Recursive Definitions
• We can define things in terms of
themselves
• Recursive definitions are different from
circular definitions: they eventually end
with something real
word ::= anti-word
word ::= floccipoccinihilipilification
34
1. Introduction
Recursive Definitions
Allow us to express infinitely
many things starting with a
few.
This is powerful!
We will see lots of examples
in this course.
35
1. Introduction
Charge
• Before 11:59pm Thursday:
– Registration survey (see course web site)
• Reading Before Friday:
– Read Course Book Chapters 2 and 3
– GEB p. 3-41
• Anyone who can produce “MU”, gets an
automatic A+ in the course
• Don’t floccipoccinihilipilificate
36
1. Introduction
Thanks!
• 2004, 2005 CS150 students, 2003 CS 200 students, 2002 CS200 students, 2001
CS655 students
• 2002 Assistant Coaches: Jon Erdman, Dante Guanlao, Stephen Liang, Portman
Wills
• 2003 Assistant Coaches: Rachel Dada, Jacques Fournier, Spencer Stockdale,
Katie Winstanley
• 2004 Assistant Coaches: Sarah Bergkuist, Andrew Connors, Patrick Rooney,
Katie Winstanley
• 2005 Assistant Coaches: David Faulkner, Dan Upton
• Guest Speakers: Radhika Nagpal (2002), Tim Koogle (2003); Alan Kay (2005)
• Spring 2006: Greg Humphreys; Kristen Walcott, Gillian Smith
• Teaching Resource Center: Marva Barnett, Freda Fretwell
• 2001-2 UTF Fellows: Phoebe Crisman, John Lach, Debra Lyon, Emily Scida,
Brian Smith, David Waldner; UTF Mentor: Judith Shatin
• 6.001 teachers: Gerry Sussman, Bob Berwick
• CS Department: Jim Cohoon, Ginny Hilton, Tom Horton, Greg Humphreys, Anita
Jones, John Knight, Worthy Martin, Chris Milner, Brenda Perkins, Gabe Robins,
Mary Lou Soffa, Jack Stankovic
• Anna Chefter, Chris Frost, Thad Hughes, Jerry McGann, Shawn O’Hargan, Mike
Peck

More Related Content

Similar to CS150 Introduction to Computational Thinking

Lecture 2: Language
Lecture 2: LanguageLecture 2: Language
Lecture 2: LanguageDavid Evans
 
Fuzzy mathematics:An application oriented introduction
Fuzzy mathematics:An application oriented introductionFuzzy mathematics:An application oriented introduction
Fuzzy mathematics:An application oriented introductionNagasuri Bala Venkateswarlu
 
Claim, Evidence, and Reasoning
Claim, Evidence, and ReasoningClaim, Evidence, and Reasoning
Claim, Evidence, and ReasoningDevron Miller
 
01 Course Intro, Administrative, Etc After Class
01 Course Intro, Administrative, Etc After Class01 Course Intro, Administrative, Etc After Class
01 Course Intro, Administrative, Etc After ClassSteve Koch
 
What knowledge bases know (and what they don't)
What knowledge bases know (and what they don't)What knowledge bases know (and what they don't)
What knowledge bases know (and what they don't)srazniewski
 
Cs101lec01 100130102405-phpapp02
Cs101lec01 100130102405-phpapp02Cs101lec01 100130102405-phpapp02
Cs101lec01 100130102405-phpapp02shobejee
 
Agglika 2016 panellinies_net
Agglika 2016 panellinies_netAgglika 2016 panellinies_net
Agglika 2016 panellinies_netdoragk
 
How2research
How2researchHow2research
How2researchkewuc
 
[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법
[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법
[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법NAVER D2
 
review tips for Environmental Planning Exam
review tips for Environmental Planning Examreview tips for Environmental Planning Exam
review tips for Environmental Planning ExamCindyOmapas1
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial IntelligenceAI Summary
 
Introduction To Computer Science (getting started)
Introduction To Computer Science (getting started)Introduction To Computer Science (getting started)
Introduction To Computer Science (getting started)Lawrence Wachs
 
Algebra 2, Course Syllabus
Algebra 2, Course SyllabusAlgebra 2, Course Syllabus
Algebra 2, Course Syllabusrfant
 
Vincent Icke - Communicating Science
Vincent Icke - Communicating ScienceVincent Icke - Communicating Science
Vincent Icke - Communicating ScienceSC4CS
 
Core Methods In Educational Data Mining
Core Methods In Educational Data MiningCore Methods In Educational Data Mining
Core Methods In Educational Data Miningebelani
 
How to make a memorable presentation
How to make a memorable presentationHow to make a memorable presentation
How to make a memorable presentationSudeep Popat
 

Similar to CS150 Introduction to Computational Thinking (20)

Lecture 2: Language
Lecture 2: LanguageLecture 2: Language
Lecture 2: Language
 
Fuzzy mathematics:An application oriented introduction
Fuzzy mathematics:An application oriented introductionFuzzy mathematics:An application oriented introduction
Fuzzy mathematics:An application oriented introduction
 
Claim, Evidence, and Reasoning
Claim, Evidence, and ReasoningClaim, Evidence, and Reasoning
Claim, Evidence, and Reasoning
 
01 Course Intro, Administrative, Etc After Class
01 Course Intro, Administrative, Etc After Class01 Course Intro, Administrative, Etc After Class
01 Course Intro, Administrative, Etc After Class
 
What knowledge bases know (and what they don't)
What knowledge bases know (and what they don't)What knowledge bases know (and what they don't)
What knowledge bases know (and what they don't)
 
Cs101lec01 100130102405-phpapp02
Cs101lec01 100130102405-phpapp02Cs101lec01 100130102405-phpapp02
Cs101lec01 100130102405-phpapp02
 
SY 7034 Week1
SY 7034 Week1SY 7034 Week1
SY 7034 Week1
 
Agglika 2016 panellinies_net
Agglika 2016 panellinies_netAgglika 2016 panellinies_net
Agglika 2016 panellinies_net
 
How2research
How2researchHow2research
How2research
 
SY 7034 Week4
SY 7034 Week4SY 7034 Week4
SY 7034 Week4
 
[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법
[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법
[D2 COMMUNITY] Spark User Group - 머신러닝 인공지능 기법
 
review tips for Environmental Planning Exam
review tips for Environmental Planning Examreview tips for Environmental Planning Exam
review tips for Environmental Planning Exam
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
 
Two Solitudes
Two SolitudesTwo Solitudes
Two Solitudes
 
u-3 ppt.pptx
u-3 ppt.pptxu-3 ppt.pptx
u-3 ppt.pptx
 
Introduction To Computer Science (getting started)
Introduction To Computer Science (getting started)Introduction To Computer Science (getting started)
Introduction To Computer Science (getting started)
 
Algebra 2, Course Syllabus
Algebra 2, Course SyllabusAlgebra 2, Course Syllabus
Algebra 2, Course Syllabus
 
Vincent Icke - Communicating Science
Vincent Icke - Communicating ScienceVincent Icke - Communicating Science
Vincent Icke - Communicating Science
 
Core Methods In Educational Data Mining
Core Methods In Educational Data MiningCore Methods In Educational Data Mining
Core Methods In Educational Data Mining
 
How to make a memorable presentation
How to make a memorable presentationHow to make a memorable presentation
How to make a memorable presentation
 

Recently uploaded

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 

Recently uploaded (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

CS150 Introduction to Computational Thinking

  • 1. 1 CS150 Fall 2005: 1. Introduction David Evans http://www.cs.virginia.edu/evans CS150 Spring 2007 University of Virginia Computer Science Class 1: Introduction
  • 3. 3 1. Introduction Let AB and CD be the two given numbers not relatively prime. It is required to find the greatest common measure of AB and CD. If now CD measures AB, since it also measures itself, then CD is a common measure of CD and AB. And it is manifest that it is also the greatest, for no greater number than CD measures CD. Euclid’s Elements, Book VII, Proposition 2 (300BC)
  • 4. 4 1. Introduction The note on the inflected line is only difficult to you, because it is so easy. There is in fact nothing in it, but you think there must be some grand mystery hidden under that word inflected! Whenever from any point without a given line, you draw a long to any point in the given line, you have inflected a line upon a given line. Ada Byron (age 19), letter to Annabella Acheson (explaining Euclid), 1834
  • 5. 5 1. Introduction By the word operation, we mean any process which alters the mutual relation of two or more things, be this relation of what kind it may. This is the most general definition, and would include all subjects in the universe... Supposing, for instance, that the fundamental relations of pitched sounds in the science of harmony and of musical composition were susceptible of such expression and adaptations, the engine might compose elaborate and scientific pieces of music of any degree of complexity or extent. Ada Byron, 1843
  • 6. 6 1. Introduction What is the difference between Euclid and Ada? “It depends on what your definition of ‘is’ is.” Bill Gates (at Microsoft’s anti-trust trial)
  • 7. 7 1. Introduction Geometry vs. Computer Science • Geometry (mathematics) is about declarative knowledge: “what is” If now CD measures AB, since it also measures itself, then CD is a common measure of CD and AB • Computer Science is about imperative knowledge: “how to” Computer Science has little to do with beige (or translucent blue) boxes called “computers” and is not a real science.
  • 8. 8 1. Introduction Computer Science “How to” knowledge: • Ways of describing information processes (computations) • Ways of predicting properties of information processes Language Logic What kinds of things do we want to predict?
  • 10. 10 1. Introduction Science? • Understanding Nature through Observation – About real things like bowling balls, black holes, antimatter, electrons, comets, etc. • Math and Computer Science are about fake things like numbers, graphs, functions, lists, etc. – Computer Science is a useful tool for doing real science, but not a real science
  • 11. 11 1. Introduction Engineering? “Engineering is design under constraint… Engineering is synthetic - it strives to create what can be, but it is constrained by nature, by cost, by concerns of safety, reliability, environmental impact, manufacturability, maintainability and many other such 'ilities.' ...” William Wulf
  • 12. 12 1. Introduction Apollo Guidance Computer, 1969 1 Cubic Foot Why did they need to fit the guidance computer in the rocket?
  • 13. 13 1. Introduction Measuring Computers • 1 bit = smallest unit of information – True or False – 0 or 1 – If we start with 2 possible choices, and get 1 bit, we can eliminate one of the choices
  • 14. 14 1. Introduction How much power? • Apollo Computer: 30720 bits of changeable memory • Lab machines have 1 GB (RAM) – 1 Gigabyte = 1024 Megabytes, 1 Megabyte = 1024 Kilobytes, 1 Kilobyte = 1024 Bytes, 1 Byte = 8 bits > (* 1024 1024 1024 8) 8589934592 ~ 8.6 Billion bits > (round (/ (* 1024 1024 1024 8) 30720)) 279620 If Apollo Guidance Computer power is 1 inch, you have 4.4 miles! You have 105 404 times more power than AGC You will understand this notation soon…but don’t worry if you don’t now
  • 15. 15 CS150 Fall 2005: 1. Introduction 0 10,000,000 20,000,000 30,000,000 40,000,000 50,000,000 60,000,000 70,000,000 80,000,000 1 9 6 9 1 9 7 2 1 9 7 5 1 9 7 8 1 9 8 1 1 9 8 4 1 9 8 7 1 9 9 0 1 9 9 3 1 9 9 6 1 9 9 9 2 0 0 2 2 0 0 5 2 0 0 8 Computing Power 1969-2008 (in Apollo Control Computer Units) Moore’s “Law”: computing power roughly doubles every 18 months!
  • 16. 16 1. Introduction Constraints Computer Scientists Face • Not like those for engineers: – Cost, weight, physics, etc. – If ~20 Million times what people had in 1969 isn’t enough for you, wait until 2010 and you will have 80 Million times… • More like those for Musicians and Poets: – Imagination and Creativity – Complexity of what we can understand
  • 17. 17 1. Introduction So, what is computer science? • Science – No: its about fake things like numbers, not about observing and understanding nature • Engineering – No: we don’t have to deal with engineering- type constraints • Liberal Art
  • 18. 18 1. Introduction Liberal Arts: ~1100 • Illiberal Arts – arts for the non-free: pursued for economic reasons • Liberal Arts – arts for the free: pursued for intrinsic reasons
  • 19. 19 1. Introduction The Liberal Arts Trivium (3 roads) Quadrivium (4 roads) Grammar study of meaning in written expression Rhetoric comprehension of discourse Logic argument for discovering truth Arithmetic Geometry quantification of space Music number in time Astronomy We will see all of these in this class!
  • 21. 21 1. Introduction Course Roadmap Computer Science from Euclid and Ada to Quantum Computing and the World Wide Web 1st Class PS 7-8 Lecture PS 1-6 Liberal Arts (Intellectual) Illiberal Arts ($$$$)
  • 22. 22 1. Introduction Like Drinking from a Firehose It may hurt a little bit, and a lot of water will go by you, but you won’t go away thirsty! Don’t be overwhelmed! You will do fine.
  • 23. 23 1. Introduction Books Computational Thinking A Whirlwind Introduction to the Third Millennial Liberal Art from Ada and Euclid to Quantum Computing and the World Wide Web “GEB” New Book!: written for course Chapters 2 and 3 out today Bonuses for helping me improve it: - Less pretentious title (?) - More exciting cover - Notice any mistakes - Improve the writing or presentation “Course Book”
  • 24. 24 1. Introduction Help Available • Me: David Evans (Call me “Dave” or “Coach”) – Office Hours will be posted (after your surveys) – Always available by email, if I don’t reply in 24 hours, send again and complain • Assistant Coaches: Richard Hsu and Kinga Dobolyi – Staffed lab hours in Small Hall – Upcoming lab hours: Thursday 6-9pm; Friday after class • Web site: http://www.cs.virginia.edu/cs150 – Everything goes on the web, you should visit it often • Your classmates (read the course pledge carefully!)
  • 25. 25 1. Introduction What I Expect of You 1. Everything on the Course Pledge – You should actually read it not just sign it (you will lose points on PS1 if your submission reveals that you didn’t read it!) 2. You are a “Jeffersonian Student” 1.Believe knowledge is powerful 2.Interested in lots of things, ahead of your time 3.Want to use what you learn to do good things 4.Care more about what you learn than grades and degree requirements
  • 26. 26 1. Introduction Background Expected • Language: – Reasonable reading and writing in English – Understanding of subject, verb and object • Math: – Numbers, add, subtract, multiply, divide – Exponentiation, logarithms (we will review) • Logic: and, or, not • Computer Literacy: read email, browse web If I ever appear to expect anything else, stop me!
  • 27. 27 1. Introduction A Course for Everyone! • CLAS, SEAS, Commerce, Arch, etc. • 1st, 2nd, 3rd, 4th, 5th Years, Community Scholars, Faculty • No background expected…but challenging even for students with lots of previous CS courses • Computer Science (future-) majors…but worthwhile even if you don’t take another CS course
  • 28. 28 1. Introduction First Main Theme: Recursive Definitions
  • 29. 29 1. Introduction What is the longest word in the English language?
  • 30. 30 1. Introduction According to Guinness floccipoccinihilipilification the act of rendering useless
  • 31. 31 1. Introduction Making Longer Words antifloccipoccinihilipilification the act of rendering not useless antiantifloccipoccinihilipilification the act of rendering useless
  • 32. 32 1. Introduction Language is Recursive No matter what word you think is the longest word, I can always make up a longer one! word ::= anti-word If you have a word, you can always make up a new word by adding anti in front. Since the result is a word, you can make a longer new word by adding anti- in front again.
  • 33. 33 1. Introduction Recursive Definitions • We can define things in terms of themselves • Recursive definitions are different from circular definitions: they eventually end with something real word ::= anti-word word ::= floccipoccinihilipilification
  • 34. 34 1. Introduction Recursive Definitions Allow us to express infinitely many things starting with a few. This is powerful! We will see lots of examples in this course.
  • 35. 35 1. Introduction Charge • Before 11:59pm Thursday: – Registration survey (see course web site) • Reading Before Friday: – Read Course Book Chapters 2 and 3 – GEB p. 3-41 • Anyone who can produce “MU”, gets an automatic A+ in the course • Don’t floccipoccinihilipilificate
  • 36. 36 1. Introduction Thanks! • 2004, 2005 CS150 students, 2003 CS 200 students, 2002 CS200 students, 2001 CS655 students • 2002 Assistant Coaches: Jon Erdman, Dante Guanlao, Stephen Liang, Portman Wills • 2003 Assistant Coaches: Rachel Dada, Jacques Fournier, Spencer Stockdale, Katie Winstanley • 2004 Assistant Coaches: Sarah Bergkuist, Andrew Connors, Patrick Rooney, Katie Winstanley • 2005 Assistant Coaches: David Faulkner, Dan Upton • Guest Speakers: Radhika Nagpal (2002), Tim Koogle (2003); Alan Kay (2005) • Spring 2006: Greg Humphreys; Kristen Walcott, Gillian Smith • Teaching Resource Center: Marva Barnett, Freda Fretwell • 2001-2 UTF Fellows: Phoebe Crisman, John Lach, Debra Lyon, Emily Scida, Brian Smith, David Waldner; UTF Mentor: Judith Shatin • 6.001 teachers: Gerry Sussman, Bob Berwick • CS Department: Jim Cohoon, Ginny Hilton, Tom Horton, Greg Humphreys, Anita Jones, John Knight, Worthy Martin, Chris Milner, Brenda Perkins, Gabe Robins, Mary Lou Soffa, Jack Stankovic • Anna Chefter, Chris Frost, Thad Hughes, Jerry McGann, Shawn O’Hargan, Mike Peck