GE2340 Artificial Intelligence - CityU CS

3y ago
10 Views
3 Downloads
4.45 MB
32 Pages
Last View : 4d ago
Last Download : 3m ago
Upload by : Olive Grimm
Transcription

GE2340 Artificial IntelligenceMathematical Logic in AIChee Wei Tan

Mathematical Logic in AIVol. 117, No. 1, Artificial Intelligence (Winter, 1988), pp. 297-311

Alan Turing: Machine and Game Alan Turing is widely viewed as “Father ofComputer Science”. His 1937 Ph.D. thesisstudied Hilbert’s “Entscheidungsproblem”(Decision problem), in which he described acomputing machine (now known as Turing’sMachine) as a thought experiment: An“algorithm” can be run by a finite set of ruleson this machine to compute anything that iscomputable.Turing was also instrumental in cracking theNazi Enigma crypto-system during theSecond World War. He is also known for“Turing Test” used in Artificial Intelligence.We will explore the Turing Test (TheImitation Game) after midterm.2014 movie of Turing: “The Imitation Game”https://www.youtube.com/watch?v es/50-pound-note-nominations

What is a Turing Machine? 1. Imagine a computer that writeseverything down in a form that iscompletely specified using one symbol(e.g., letter/number) at a time. 2. The computer follows a finite set ofrules that are referred to once a symbol iswritten down. 3. Rules are stated such that at any giventime only a single rule is active and henceno ambiguity can arise. Each ruleactivates another rule depending on whatletter/number is currently read.https://pbs.twimg.com/media/DsEy F5WwAIF81F.png

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.Eight cells on the paper tape aremarked 111 111, signifying theaddition of 4 and 3 in the “unary”system in which an integer n issymbolized by n 1’s.If read ,Start by assuming that the machine isin State A. State B:1. Erase the .2. Print 1.3. Stop1111 111State AM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111 111State AM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111 111State AM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111 111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111 111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111 111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111 111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop111111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop1111111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Turing Machine: “Hello World” ProgramIf read 1, State A:1. Erase the 1.2. Scan next cell on right3. Go to state B State B:1. Scan next cell on right.2. Stay in State B.If read , State B:1. Erase the .2. Print 1.3. Stop1111111State BM. Gardner, Can Machines Think?, Chapter 9 in Mathematical Circus, pp. 102-104

Boolean Logic and Boolean AlgebraGeorge Boole, English mathematician who establishedmodern symbolic logic is self-taught. He wrote in 1854“An Investigation of the Laws of Thought on Which areFounded the Mathematical Theories of Logic andProbabilities”, where his algebra of logic, now calledBoolean algebra, pointed out that if his ‘1’ were takenas truth and his ‘0’ as falsehood, the calculus could beapplied to statements that are either true or false. Thisleads to Propositional nt/uploads/2015/11/boole2.jpg

Boolean Logic and Boolean AlgebraThe Genius of George Boole (2015), 40:30https://www.youtube.com/watch?v Hljir TyTEwShannon, at the age of 21, wrote in 1937 “possibly the mostimportant, and also the most noted, master's thesis of thecentury” that describes fully the building blocks to build alogical computer (He stumbled across Boole’s work in aphilosophy class).Google’s doodles of 200th Birthday of Georgle -200th-birthdayShannon demonstrated that Boolean algebra is the algebra ofsets, which can be physically realized in switching circuits andnetworks to manipulate any logical tasks. Let’s see his adderlater.

Boolean Logic and Boolean Algebra This is the calculus concerned with true or false statementsconnected by the following three binary relations: These three logic relations can build the entire universe of logic A Venn diagram is a convenient tool to understand logic

Boolean Logic and Boolean Algebra A natural duality correspondence between set theory andlogic operators

Boolean Logic and Boolean AlgebraExample of Exclusive–Or Statement that is validEither I vote for Alice or I vote for Bob in the electionwith a single vote.AliceBobI did not vote for Alice and I did not vote for Bob. (False)I voted for Alice and I did not vote for Bob. (True)I did not vote for Alice and I voted for Bob. (True)I voted for Alice and I voted for Bob. (False) Data is true if andonly if one operandis true and the otheris false

Example 1To see how easily the Venn circles solve certain typesof logic puzzles, consider the following premises aboutthree businessmen, Abner, Bill, and Charley, who lunchtogether every working day:1. If Abner orders a martini, so does Bill.2. Either Bill or Charley always orders a martini, but neverboth at the same lunch.3. Either Abner or Charley or both always order a martini.4. If Charley orders a martini, so does Abner.M. Gardner, Boolean Algebra, Chapter 8 in Mathematical Circus, pp. 87-101

Example 1 (cont.) The eight areas of the overlapping circles shown in followingdiagram are labeled to show all possible combinations of truthvalues for a, b, c, which stand for Abner, Bill, and Charley.Thus the area marked a, b, c represents Abner's and Charley's having martinis while Billdoes not.M. Gardner, Boolean Algebra, Chapter 8 in Mathematical Circus, pp. 87-101

Example 1 (cont.)See if you can shade the areas declared empty by thefour premises and then examine the result to determinewho will order martinis if you lunch with the three men.M. Gardner, Boolean Algebra, Chapter 8 in Mathematical Circus, pp. 87-101

Boolean Logic and Shannon’s AdderDo we havea majority? Data is true if andonly if one operandis true and the otheris falseDo we have anodd number of“Yes”?

Boolean Logic and Shannon’s AdderDo we havea majority?AliceBob Data is true if andonly if one operandis true and the otheris falseAliceDo we have anodd number of“Yes”?Bob

Boolean Logic and Shannon’s AdderDo we havea majority?Do we have anodd number of“Yes”?

Boolean Logic and Shannon’s AdderDo we havea majority?EveEveAliceAliceBobDo we have anodd number of“Yes”?Bob

Boolean Logic and Shannon’s AdderCarry: Do wehave amajority?1111011 010110000Adding Binary Digits (Bit)0 0 Sum:0, Carry:01 0 Sum:1, Carry:01 1 Sum:0, Carry:1Shannon’s Adder(1937)‘1’ is logically yes‘0’ is logically noSum: Do wehave an oddnumber of“Yes”?As an aside, Shannon’s adder can be used to build the entire universe of logic, i.e., it is the basic building block of logic!

Example 2: Revisiting ElementarySchool MathConsider the following set of eight numbers: 1, 2, 3, 5, 6, 10, 15,30. They are the factors of 30, including 1 and 30 as factors.We interpret "union" as the least common multiple of any pair ofthose numbers. "Intersection" of a pair is taken to be theirgreatest common divisor.What is the greatest common divisor of 6 and 10?What is the least common multiple of 6 and 10?M. Gardner, Boolean Algebra, Chapter 8 in Mathematical Circus, pp. 87-101Bunitskiy, E., "Some applications of mathematical logic to the theory of the greatest common divisorand least common multiple" (in Russian), Vestnik Opytnoy Jiziki i elem. mat., no. 274, 1899.

Example 2: Revisiting ElementarySchool MathSet inclusion becomes the relation "is a factor of." The universal setis 30, the null set 1. The complement of a number a is 30/a. Withthese novel interpretations of the Boolean relations, it turns outthat we have a consistent Boolean structure! All the theorems ofBoolean algebra have their counterparts in this curious systembased on the factors of 30.30/15 2, 2/2 130/10 3, 3/3 130/6 5, 5/5 130/3 10, 10/5 2 , 2/2 130/2 15, 15/3 5 , 5/5 130/5 6 , 6/3 2 , 2/2 130/1 3030/30 136230101551M. Gardner, Boolean Algebra, Chapter 8 in Mathematical Circus, pp. 87-101

Example 2: Revisiting ElementarySchool MathThe numbers 1, 2, 3, 5, 6, 7, 10, 14, 15, 21, 30, 35, 42, 70,105, 210, the 16 factors of 210, also form a Booleanalgebra when interpreted in the same way, although ofcourse 210 is now the universal set and the complementof a is 210/a.Can you discover a simple way to generate sets of 2!numbers, where " is any positive integer, that will formBoolean systems of this peculiar kind?If yes, you have an algorithm!M. Gardner, Boolean Algebra, Chapter 8 in Mathematical Circus, pp. 87-101

Millenium Prize Challenge An encryption method is presented with the novel property thatpublicly revealing an encryption key does not thereby reveal thecorresponding decryption key. This has two importantconsequences: Couriers or other secure means are not needed to transmit keys. A message can be 'signed' using a privately held decryption key. Anyone can verify thissignature using the corresponding publicly revealed encryption key.Rivest, Shamir, Adleman; A method for obtaining digital signatures and public-key cryptosystems; Communications of the ACM, Feb 1978.

Millenium Prize Challenge The heart of the RSA crypto-system is that, for each number n, thereexists prime numbers p and q such that n p q. Find these two primes,given only n The RSA crypto-system is a real-life practical application of a Booleanalgebra system that has commercial and consequential valuePrivate key 1Public keyPrivate key 2 Suppose my public key is 35, break this RSA crypto-system usingthe simple algorithm you devised. What if my public key is 143? How many digits do current RSA public key have?https://en.wikipedia.org/wiki/RSA Factoring Challengehttps://en.wikipedia.org/wiki/The Magic Words are Squeamish Ossifrage

of logic puzzles, consider the following premises about three businessmen, Abner, Bill, and Charley, who lunch together every working day: 1. If Abner orders a martini, so does Bill. 2. Either Bill or Charley always orders a martini, but never both at the same lunch. 3. Either Abner or Charley or both always order a martini. 4.

Related Documents:

2015-2016 CATALOG info@CityU.edu 1.888.42.CITYU www.CityU.edu. 2 Curriculum subject to change. For most current information, . 2015/16 SUMMER 2015/16 FALL 2015/16 WINTER 2016 SPRING 2016 Last Day of Registration June 20, 2015 September 20, 2015 December 20, 2015 March 20, 2016

Artificial Intelligence -a brief introduction Project Management and Artificial Intelligence -Beyond human imagination! November 2018 7 Artificial Intelligence Applications Artificial Intelligence is the ability of a system to perform tasks through intelligent deduction, when provided with an abstract set of information.

and artificial intelligence expert, joined Ernst & Young as the person in charge of its global innovative artificial intelligence team. In recent years, many countries have been competing to carry out research and application of artificial intelli-gence, and the call for he use of artificial

BCS Foundation Certificate in Artificial Intelligence V1.1 Oct 2020 Syllabus Learning Objectives 1. Ethical and Sustainable Human and Artificial Intelligence (20%) Candidates will be able to: 1.1. Recall the general definition of Human and Artificial Intelligence (AI). 1.1.1. Describe the concept of intelligent agents. 1.1.2. Describe a modern .

IN ARTIFICIAL INTELLIGENCE Stuart Russell and Peter Norvig, Editors FORSYTH & PONCE Computer Vision: A Modern Approach GRAHAM ANSI Common Lisp JURAFSKY & MARTIN Speech and Language Processing, 2nd ed. NEAPOLITAN Learning Bayesian Networks RUSSELL & NORVIG Artificial Intelligence: A Modern Approach, 3rd ed. Artificial Intelligence A Modern Approach Third Edition Stuart J. Russell and Peter .

Peter Norvig Prentice Hall, 2003 This is the book that ties in most closely with the module Artificial Intelligence (2nd ed.) Elaine Rich & Kevin Knight McGraw Hill, 1991 Quite old now, but still a good second book Artificial Intelligence: A New Synthesis Nils Nilsson Morgan Kaufmann, 1998 A good modern book Artificial Intelligence (3rd ed.) Patrick Winston Addison Wesley, 1992 A classic, but .

BCS Essentials Certificate in Artificial Intelligence Syllabus V1.0 BCS 2018 Page 10 of 16 Recommended Reading List Artificial Intelligence and Consciousness Title Artificial Intelligence, A Modern Approach, 3rd Edition Author Stuart Russell and Peter Norvig, Publication Date 2016, ISBN 10 1292153962

Welcome to ENG 111: Introduction to Literature and Literary Criticism. This three-credit unit course is available for students in the second semester of the first year BA English Language. The course serves as a foundation in the study of literary criticism. It exposes you to forms critical theories and concept in literary criticism. You will also