Formal Languages and Automata Theory
Siu On CHAN Fall 2020
Chinese University of Hong Kong 1/27
Formal Languages and Automata Theory Siu On CHAN Fall 2020 Chinese - - PowerPoint PPT Presentation
Formal Languages and Automata Theory Siu On CHAN Fall 2020 Chinese University of Hong Kong 1/27 Welcome to 3130 https://www.cse.cuhk.edu.hk/~siuon/csci3130 Tentative syllabus and schedule Reference book Introduction to the Theory of
Chinese University of Hong Kong 1/27
2/27
Source: Wikipedia on AlphaGo versus Lee Sedol 3/27
https://lacker.io/ai/2020/07/06/giving-gpt-3-a-turing-test.html Human: What is your favorite animal? AI: My favorite animal is a dog. Human: Why? AI: Because dogs are loyal and friendly. Human: What are two reasons that a dog might be in a bad mood? AI: Two reasons that a dog might be in a bad mood are if it is hungry or if it is hot. Human: How many eyes does a giraffe have? AI: A giraffe has two eyes. Human: How many legs does a frog have? AI: A frog has four legs. Human: Are there any animals with three legs? AI: No, there are no animals with three legs. Human: Why don’t animals have three legs? AI: Animals don’t have three legs because they would fall over.
4/27
“water screw” perpetual motion machine
5/27
6/27
7/27
$0 $5 $10 +5 +5 +5, +10 +5, +10 +10 +10 R R R R 8/27
9/27
10/27
11/27
12/27
#include <stdio.h> main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13? main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t, "@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#\ ;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \ q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \ ){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \ iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \ }'+}##(!!/") :t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1) :0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}
13/27
14/27
15/27
16/27
17/27
1 | x contains the substring “to”} 18/27
2 | x is divisible by 7}
3
19/27
2 | x is divisible by 7}
19/27
2 | x is divisible by 7}
19/27
20/27
21/27
22/27
23/27
q0 q1 q2 q3 q4 a a b a b b b a b a
24/27
25/27
25/27
26/27
26/27
26/27
27/27