SlideShare a Scribd company logo
Class 2:
Language

David Evans
cs1120 Fall 2011
Question from Class 1
What other things have changed as much as
(or more that!) computing power in your
lifetime? (Post your guesses/answers as
comments on the course blog.)



  Only one attempted guess (which I’m not sure I understand)!




                                                                2
What is Language?




                    3
Webster’s Dictionary Definition

A systematic means of
communicating ideas or feelings
by the use of conventionalized
signs, sounds, gestures, or marks
having understood meanings.

                                    4
Linguist’s Definition
                          (Charles Yang)

A description of pairs (S, M), where S
stands for sound, or any kind of surface
forms, and M stands for meaning.
A theory of language must specify the
properties of S and M, and how they
are related.


                                           5
A language is:
- a set of surface forms (usually
     strings of characters), and
- a way to map any surface form
     in the language to a meaning
      Caveat: computer scientists often use language to
      mean just a set of surface forms.


                                                          6
What are languages made of?
Primitives (all languages have these)
   The simplest surface forms with meaning
Means of Combination (all languages have
  these)
   Ways to make new surface forms from ones
    you already have
Means of Abstraction (all powerful languages
  have these)
   Ways to use simple surface forms to
    represent complicated ones
                                               7
Does English have these?
Primitives
  Words (?)
     “hippopotomonstrosesquipedaliophobia” is not a primitive
  Morphemes – smallest units of meaning
     e.g., anti- (“opposite”)
Means of combination
  e.g., Sentence ::= Subject Verb Object
  Precise rules, but not the ones you learned in grammar
    school
                    Ending a sentence with a preposition is something
                                       up with which we will not put.
                                                   Winston Churchill
                                                                        8
Does English have these?
Means of abstraction
  Pronouns: she, he, it, they, which, etc.
  Confusing since they don’t always mean the same
    thing, it depends on where they are used.

    The “these” in the slide title is an abstraction for the
    three elements of language introduced 2 slides ago.
    The “they” in the confusing sentence is an
    abstraction for pronouns.



                                                               9
Plan
Language, Components of Language
Course Overview and Expectations
How to describe a language




                                   10
Course Roadmap (SIS Name)
Computer Science from




                                 (Intellectual)
                                  Liberal Arts Illiberal Arts
                      Class 1
Euclid and Ada
to                    PS 1-7
Quantum Computing      Lecture
and




                                                   ($$$$)
the World Wide Web     PS 8-9
Course Roadmap (New Name)
Introduction to
Computing:
Explorations in
Language, Chapters 2-5, 9-11; PS1-9
Logic, and Chapters 6, 7, 8, 12; PS1-9
Machines Chapter 6, 12; PS1-9
          Also: XLLM is better acronym than FAEQCWWW
Why Learning
      Computer Science is Hard
New way of thinking
  Both abstract and concrete
  Dynamic
  Finite, but quadrillions are common
Everything is connected
  Need to understand lots of new things at once



                                                  13
Like Drinking from a Firehose




                                          flickr:jdawg

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.
“Typical” cs1120 Grades
                     A
              A                              Overall Class


  A+         Students entering     A-
                  with no
               programming
       C        experience              A-
   C
                                  B+
            B-
       B-                B
                 B           B+


                                                             15
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!
What I Expect of You
 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              http://soundstrings.wordpress.com
http://www.wm.edu/about/history/tjcollege/tjcollegelife/:
Thomas Jefferson enrolled in the College of William
and Mary on March 25, 1760, at the age of sixteen.
… By the time he came to Williamsburg, the young
scholar was proficient in the classics and able to
read Greek and Latin authors in the original… He
was instructed in natural philosophy
(physics, metaphysics, and mathematics) and
moral philosophy (rhetoric, logic, and ethics). A
keen and diligent student, he displayed an avid
curiosity in all fields and, according to family
tradition, he frequently studied fifteen hours a day.
                                                                18
Honor




        19
Questions




            20
How should we
describe languages?


                      21
Oxford English Dictionary
         Hardcover: 21728 pages
         Shipping Weight: 143 pounds
         Amazon Bestsellers Rank: #459,782




Amazon Bestsellers Rank: #471,120       Chinese-Korean Unabridged Dictionary

                                                                               22
How should we describe
  precise languages
      precisely?


                         23
Requirements
Describe infinitely many surface forms with a
 short description
  Listing them all doesn’t work: need ways to
    generate the surface forms
                                   Today: formally

Way to map each surface form to exactly one
 precise meaning
         Chapter 3, Monday: informally (using English)
         Later (PS7): more formally (defining an interpreter)

                                                                24
ENIAC: Electronic Numerical Integrator and Computer
Early WWII computer
  but not the first
  (PS4)
Built to calculate
  bombing tables

Memory size:
 twenty 10 decimal digit accumulators = 664 bits
                                   ENIAC (1946): ½ mm
               Apollo Guidance Computer (1969): 1 inch
                                         You: ~10 miles
Directions for Getting 6
1. Choose any regular accumulator (ie. Accumulator #9).
2. Direct the Initiating Pulse to terminal 5i.
3. The initiating pulse is produced by the initiating unit's Io terminal each time the
   Eniac is started. This terminal is usually, by default, plugged into Program Line 1-
   1 (described later). Simply connect a program cable from Program Line 1-1 to
   terminal 5i on this Accumulator.
4. Set the Repeat Switch for Program Control 5 to 6.
5. Set the Operation Switch for Program Control 5 to ADD.
6. Set the Clear-Correct switch to C.
7. Turn on and clear the Eniac.
8. Normally, when the Eniac is first started, a clearing process is begun. If the Eniac
   had been previously started, or if there are random neons illuminated in the
   accumulators, the “Initial Clear” button of the Initiating device can be pressed.
9. Press the “Initiating Pulse Switch” that is located on the Initiating device.
10.Stand back.
Admiral Grace Hopper
                            (1906-1992)
                        • Mathematics PhD Yale, 1934
                        • Entered Navy, 1943
                        • First to program Mark I (first
                          “large” computer, 51 feet long)
                        • Wrote first compiler (1952) –
                          program for programming
“Nobody believed that I   computers and designed FLOW-
had a running compiler
                          MATIC programming language
and nobody would touch
it. They told me        • “Mother” of COBOL (most widely
computers could only do   used programming language in
arithmetic.”              21st century)
USS Hopper



    “Dare and Do”




Guest on David Letterman
Nanostick
How far does light travel in 1 nanosecond?
  > (define nanosecond (/ 1 (* 1000 1000 1000))) ;; 1 billionth of a s
  > (define lightspeed 299792458) ; m / s
  > (* lightspeed nanosecond)
  149896229/500000000
  > (exact->inexact (* lightspeed nanosecond))
  0.299792458
                                    = just under 1 foot
 Current machines have at least “2 GHz Pentium 4 CPU”

   GHz = GigaHertz = 1 Billion times per second
   They must finish a step before light travels 11.5 cm!
Code written by
     humans
                                   Compiler translates
                                   from code in a high-
       Compiler                    level language to
                                   machine code

Code machine can run
  Scheme uses an interpreter. An interpreter is like a
  compiler, except it runs quickly and quietly on small
  bits of code at a time.
Charge

Problem Set 0: due Sunday, 5:59pm
  Help: 3-5pm in Thorton Stacks (Joeseph
  and Kristina)
Readings:
  by Monday: Chapter 3 of course book
  by next Friday:
     Chapter 4 of course book
     Chapters 1-3 of The Information
                                           31

More Related Content

Similar to Lecture 2: Language

Towards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchTowards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific Research
Sagar Sen
 
eLearning Systems on examples
eLearning Systems on exampleseLearning Systems on examples
eLearning Systems on examples
konstantinfiltschew
 
Can programming be liberated from the von neumman style
Can programming be liberated from the von neumman styleCan programming be liberated from the von neumman style
Can programming be liberated from the von neumman style
shady_10
 
Pascal programming language
Pascal programming languagePascal programming language
Pascal programming language
Verónica Meo Laos
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
AI Summary
 
Using ICT to Analyse Language
Using ICT to Analyse LanguageUsing ICT to Analyse Language
Using ICT to Analyse Language
Eka Nathiqo
 
Lecture 2: Computational Semantics
Lecture 2: Computational SemanticsLecture 2: Computational Semantics
Lecture 2: Computational Semantics
Marina Santini
 
How to write scientific papers correctly, clearly, and concisely - Part II Wr...
How to write scientific papers correctly, clearly, and concisely - Part II Wr...How to write scientific papers correctly, clearly, and concisely - Part II Wr...
How to write scientific papers correctly, clearly, and concisely - Part II Wr...
Sajid Iqbal
 
Class 27: Pythonic Objects
Class 27: Pythonic ObjectsClass 27: Pythonic Objects
Class 27: Pythonic Objects
David Evans
 
ODSC London 2018
ODSC London 2018ODSC London 2018
ODSC London 2018
Kfir Bar
 
Bird05 nltk-intro
Bird05 nltk-introBird05 nltk-intro
Bird05 nltk-intro
Stefano Lariccia
 
FinalReport
FinalReportFinalReport
FinalReport
Vinh Xuan Ho
 
Introduction to automata
Introduction to automataIntroduction to automata
Introduction to automata
Shubham Bansal
 
Ted Willke - The Brain’s Guide to Dealing with Context in Language Understanding
Ted Willke - The Brain’s Guide to Dealing with Context in Language UnderstandingTed Willke - The Brain’s Guide to Dealing with Context in Language Understanding
Ted Willke - The Brain’s Guide to Dealing with Context in Language Understanding
MLconf
 
Visual-Semantic Embeddings: some thoughts on Language
Visual-Semantic Embeddings: some thoughts on LanguageVisual-Semantic Embeddings: some thoughts on Language
Visual-Semantic Embeddings: some thoughts on Language
Roelof Pieters
 
English for computing tb
English for computing tbEnglish for computing tb
English for computing tb
Henrique Silva
 
History of OOP
History of OOPHistory of OOP
History of OOP
Vladimir Tsvetkov
 
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
NYversity
 
Geek Night 16.0 - Evolution of Programming Languages
Geek Night 16.0 - Evolution of Programming LanguagesGeek Night 16.0 - Evolution of Programming Languages
Geek Night 16.0 - Evolution of Programming Languages
GeekNightHyderabad
 
GeekNight: Evolution of Programming Languages
GeekNight: Evolution of Programming LanguagesGeekNight: Evolution of Programming Languages
GeekNight: Evolution of Programming Languages
Hyderabad Scalability Meetup
 

Similar to Lecture 2: Language (20)

Towards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific ResearchTowards and Enjoyable Career in Scientific Research
Towards and Enjoyable Career in Scientific Research
 
eLearning Systems on examples
eLearning Systems on exampleseLearning Systems on examples
eLearning Systems on examples
 
Can programming be liberated from the von neumman style
Can programming be liberated from the von neumman styleCan programming be liberated from the von neumman style
Can programming be liberated from the von neumman style
 
Pascal programming language
Pascal programming languagePascal programming language
Pascal programming language
 
Introduction to Artificial Intelligence
Introduction to Artificial IntelligenceIntroduction to Artificial Intelligence
Introduction to Artificial Intelligence
 
Using ICT to Analyse Language
Using ICT to Analyse LanguageUsing ICT to Analyse Language
Using ICT to Analyse Language
 
Lecture 2: Computational Semantics
Lecture 2: Computational SemanticsLecture 2: Computational Semantics
Lecture 2: Computational Semantics
 
How to write scientific papers correctly, clearly, and concisely - Part II Wr...
How to write scientific papers correctly, clearly, and concisely - Part II Wr...How to write scientific papers correctly, clearly, and concisely - Part II Wr...
How to write scientific papers correctly, clearly, and concisely - Part II Wr...
 
Class 27: Pythonic Objects
Class 27: Pythonic ObjectsClass 27: Pythonic Objects
Class 27: Pythonic Objects
 
ODSC London 2018
ODSC London 2018ODSC London 2018
ODSC London 2018
 
Bird05 nltk-intro
Bird05 nltk-introBird05 nltk-intro
Bird05 nltk-intro
 
FinalReport
FinalReportFinalReport
FinalReport
 
Introduction to automata
Introduction to automataIntroduction to automata
Introduction to automata
 
Ted Willke - The Brain’s Guide to Dealing with Context in Language Understanding
Ted Willke - The Brain’s Guide to Dealing with Context in Language UnderstandingTed Willke - The Brain’s Guide to Dealing with Context in Language Understanding
Ted Willke - The Brain’s Guide to Dealing with Context in Language Understanding
 
Visual-Semantic Embeddings: some thoughts on Language
Visual-Semantic Embeddings: some thoughts on LanguageVisual-Semantic Embeddings: some thoughts on Language
Visual-Semantic Embeddings: some thoughts on Language
 
English for computing tb
English for computing tbEnglish for computing tb
English for computing tb
 
History of OOP
History of OOPHistory of OOP
History of OOP
 
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
 
Geek Night 16.0 - Evolution of Programming Languages
Geek Night 16.0 - Evolution of Programming LanguagesGeek Night 16.0 - Evolution of Programming Languages
Geek Night 16.0 - Evolution of Programming Languages
 
GeekNight: Evolution of Programming Languages
GeekNight: Evolution of Programming LanguagesGeekNight: Evolution of Programming Languages
GeekNight: Evolution of Programming Languages
 

More from David Evans

Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!
David Evans
 
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for CypherpunksTrick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
David Evans
 
Hidden Services, Zero Knowledge
Hidden Services, Zero KnowledgeHidden Services, Zero Knowledge
Hidden Services, Zero Knowledge
David Evans
 
Anonymity in Bitcoin
Anonymity in BitcoinAnonymity in Bitcoin
Anonymity in Bitcoin
David Evans
 
Midterm Confirmations
Midterm ConfirmationsMidterm Confirmations
Midterm Confirmations
David Evans
 
Scripting Transactions
Scripting TransactionsScripting Transactions
Scripting Transactions
David Evans
 
How to Live in Paradise
How to Live in ParadiseHow to Live in Paradise
How to Live in Paradise
David Evans
 
Bitcoin Script
Bitcoin ScriptBitcoin Script
Bitcoin Script
David Evans
 
Mining Economics
Mining EconomicsMining Economics
Mining Economics
David Evans
 
Mining
MiningMining
Mining
David Evans
 
The Blockchain
The BlockchainThe Blockchain
The Blockchain
David Evans
 
Becoming More Paranoid
Becoming More ParanoidBecoming More Paranoid
Becoming More Paranoid
David Evans
 
Asymmetric Key Signatures
Asymmetric Key SignaturesAsymmetric Key Signatures
Asymmetric Key Signatures
David Evans
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to Cryptography
David Evans
 
Class 1: What is Money?
Class 1: What is Money?Class 1: What is Money?
Class 1: What is Money?
David Evans
 
Multi-Party Computation for the Masses
Multi-Party Computation for the MassesMulti-Party Computation for the Masses
Multi-Party Computation for the Masses
David Evans
 
Proof of Reserve
Proof of ReserveProof of Reserve
Proof of Reserve
David Evans
 
Silk Road
Silk RoadSilk Road
Silk Road
David Evans
 
Blooming Sidechains!
Blooming Sidechains!Blooming Sidechains!
Blooming Sidechains!
David Evans
 
Useful Proofs of Work, Permacoin
Useful Proofs of Work, PermacoinUseful Proofs of Work, Permacoin
Useful Proofs of Work, Permacoin
David Evans
 

More from David Evans (20)

Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!Cryptocurrency Jeopardy!
Cryptocurrency Jeopardy!
 
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for CypherpunksTrick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
Trick or Treat?: Bitcoin for Non-Believers, Cryptocurrencies for Cypherpunks
 
Hidden Services, Zero Knowledge
Hidden Services, Zero KnowledgeHidden Services, Zero Knowledge
Hidden Services, Zero Knowledge
 
Anonymity in Bitcoin
Anonymity in BitcoinAnonymity in Bitcoin
Anonymity in Bitcoin
 
Midterm Confirmations
Midterm ConfirmationsMidterm Confirmations
Midterm Confirmations
 
Scripting Transactions
Scripting TransactionsScripting Transactions
Scripting Transactions
 
How to Live in Paradise
How to Live in ParadiseHow to Live in Paradise
How to Live in Paradise
 
Bitcoin Script
Bitcoin ScriptBitcoin Script
Bitcoin Script
 
Mining Economics
Mining EconomicsMining Economics
Mining Economics
 
Mining
MiningMining
Mining
 
The Blockchain
The BlockchainThe Blockchain
The Blockchain
 
Becoming More Paranoid
Becoming More ParanoidBecoming More Paranoid
Becoming More Paranoid
 
Asymmetric Key Signatures
Asymmetric Key SignaturesAsymmetric Key Signatures
Asymmetric Key Signatures
 
Introduction to Cryptography
Introduction to CryptographyIntroduction to Cryptography
Introduction to Cryptography
 
Class 1: What is Money?
Class 1: What is Money?Class 1: What is Money?
Class 1: What is Money?
 
Multi-Party Computation for the Masses
Multi-Party Computation for the MassesMulti-Party Computation for the Masses
Multi-Party Computation for the Masses
 
Proof of Reserve
Proof of ReserveProof of Reserve
Proof of Reserve
 
Silk Road
Silk RoadSilk Road
Silk Road
 
Blooming Sidechains!
Blooming Sidechains!Blooming Sidechains!
Blooming Sidechains!
 
Useful Proofs of Work, Permacoin
Useful Proofs of Work, PermacoinUseful Proofs of Work, Permacoin
Useful Proofs of Work, Permacoin
 

Recently uploaded

Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Wask
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
Mariano Tinti
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 

Recently uploaded (20)

Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Digital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying AheadDigital Marketing Trends in 2024 | Guide for Staying Ahead
Digital Marketing Trends in 2024 | Guide for Staying Ahead
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Mariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceXMariano G Tinti - Decoding SpaceX
Mariano G Tinti - Decoding SpaceX
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 

Lecture 2: Language

  • 2. Question from Class 1 What other things have changed as much as (or more that!) computing power in your lifetime? (Post your guesses/answers as comments on the course blog.) Only one attempted guess (which I’m not sure I understand)! 2
  • 4. Webster’s Dictionary Definition A systematic means of communicating ideas or feelings by the use of conventionalized signs, sounds, gestures, or marks having understood meanings. 4
  • 5. Linguist’s Definition (Charles Yang) A description of pairs (S, M), where S stands for sound, or any kind of surface forms, and M stands for meaning. A theory of language must specify the properties of S and M, and how they are related. 5
  • 6. A language is: - a set of surface forms (usually strings of characters), and - a way to map any surface form in the language to a meaning Caveat: computer scientists often use language to mean just a set of surface forms. 6
  • 7. What are languages made of? Primitives (all languages have these) The simplest surface forms with meaning Means of Combination (all languages have these) Ways to make new surface forms from ones you already have Means of Abstraction (all powerful languages have these) Ways to use simple surface forms to represent complicated ones 7
  • 8. Does English have these? Primitives Words (?) “hippopotomonstrosesquipedaliophobia” is not a primitive Morphemes – smallest units of meaning e.g., anti- (“opposite”) Means of combination e.g., Sentence ::= Subject Verb Object Precise rules, but not the ones you learned in grammar school Ending a sentence with a preposition is something up with which we will not put. Winston Churchill 8
  • 9. Does English have these? Means of abstraction Pronouns: she, he, it, they, which, etc. Confusing since they don’t always mean the same thing, it depends on where they are used. The “these” in the slide title is an abstraction for the three elements of language introduced 2 slides ago. The “they” in the confusing sentence is an abstraction for pronouns. 9
  • 10. Plan Language, Components of Language Course Overview and Expectations How to describe a language 10
  • 11. Course Roadmap (SIS Name) Computer Science from (Intellectual) Liberal Arts Illiberal Arts Class 1 Euclid and Ada to PS 1-7 Quantum Computing Lecture and ($$$$) the World Wide Web PS 8-9
  • 12. Course Roadmap (New Name) Introduction to Computing: Explorations in Language, Chapters 2-5, 9-11; PS1-9 Logic, and Chapters 6, 7, 8, 12; PS1-9 Machines Chapter 6, 12; PS1-9 Also: XLLM is better acronym than FAEQCWWW
  • 13. Why Learning Computer Science is Hard New way of thinking Both abstract and concrete Dynamic Finite, but quadrillions are common Everything is connected Need to understand lots of new things at once 13
  • 14. Like Drinking from a Firehose flickr:jdawg 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.
  • 15. “Typical” cs1120 Grades A A Overall Class A+ Students entering A- with no programming C experience A- C B+ B- B- B B B+ 15
  • 16. 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!
  • 17. What I Expect of You 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 http://soundstrings.wordpress.com
  • 18. http://www.wm.edu/about/history/tjcollege/tjcollegelife/: Thomas Jefferson enrolled in the College of William and Mary on March 25, 1760, at the age of sixteen. … By the time he came to Williamsburg, the young scholar was proficient in the classics and able to read Greek and Latin authors in the original… He was instructed in natural philosophy (physics, metaphysics, and mathematics) and moral philosophy (rhetoric, logic, and ethics). A keen and diligent student, he displayed an avid curiosity in all fields and, according to family tradition, he frequently studied fifteen hours a day. 18
  • 19. Honor 19
  • 20. Questions 20
  • 21. How should we describe languages? 21
  • 22. Oxford English Dictionary Hardcover: 21728 pages Shipping Weight: 143 pounds Amazon Bestsellers Rank: #459,782 Amazon Bestsellers Rank: #471,120 Chinese-Korean Unabridged Dictionary 22
  • 23. How should we describe precise languages precisely? 23
  • 24. Requirements Describe infinitely many surface forms with a short description Listing them all doesn’t work: need ways to generate the surface forms Today: formally Way to map each surface form to exactly one precise meaning Chapter 3, Monday: informally (using English) Later (PS7): more formally (defining an interpreter) 24
  • 25. ENIAC: Electronic Numerical Integrator and Computer Early WWII computer but not the first (PS4) Built to calculate bombing tables Memory size: twenty 10 decimal digit accumulators = 664 bits ENIAC (1946): ½ mm Apollo Guidance Computer (1969): 1 inch You: ~10 miles
  • 26. Directions for Getting 6 1. Choose any regular accumulator (ie. Accumulator #9). 2. Direct the Initiating Pulse to terminal 5i. 3. The initiating pulse is produced by the initiating unit's Io terminal each time the Eniac is started. This terminal is usually, by default, plugged into Program Line 1- 1 (described later). Simply connect a program cable from Program Line 1-1 to terminal 5i on this Accumulator. 4. Set the Repeat Switch for Program Control 5 to 6. 5. Set the Operation Switch for Program Control 5 to ADD. 6. Set the Clear-Correct switch to C. 7. Turn on and clear the Eniac. 8. Normally, when the Eniac is first started, a clearing process is begun. If the Eniac had been previously started, or if there are random neons illuminated in the accumulators, the “Initial Clear” button of the Initiating device can be pressed. 9. Press the “Initiating Pulse Switch” that is located on the Initiating device. 10.Stand back.
  • 27. Admiral Grace Hopper (1906-1992) • Mathematics PhD Yale, 1934 • Entered Navy, 1943 • First to program Mark I (first “large” computer, 51 feet long) • Wrote first compiler (1952) – program for programming “Nobody believed that I computers and designed FLOW- had a running compiler MATIC programming language and nobody would touch it. They told me • “Mother” of COBOL (most widely computers could only do used programming language in arithmetic.” 21st century)
  • 28. USS Hopper “Dare and Do” Guest on David Letterman
  • 29. Nanostick How far does light travel in 1 nanosecond? > (define nanosecond (/ 1 (* 1000 1000 1000))) ;; 1 billionth of a s > (define lightspeed 299792458) ; m / s > (* lightspeed nanosecond) 149896229/500000000 > (exact->inexact (* lightspeed nanosecond)) 0.299792458 = just under 1 foot Current machines have at least “2 GHz Pentium 4 CPU” GHz = GigaHertz = 1 Billion times per second They must finish a step before light travels 11.5 cm!
  • 30. Code written by humans Compiler translates from code in a high- Compiler level language to machine code Code machine can run Scheme uses an interpreter. An interpreter is like a compiler, except it runs quickly and quietly on small bits of code at a time.
  • 31. Charge Problem Set 0: due Sunday, 5:59pm Help: 3-5pm in Thorton Stacks (Joeseph and Kristina) Readings: by Monday: Chapter 3 of course book by next Friday: Chapter 4 of course book Chapters 1-3 of The Information 31