Test GR2: Różnice pomiędzy wersjami

Z Studia Informatyczne
Przejdź do nawigacjiPrzejdź do wyszukiwania
Rogoda (dyskusja | edycje)
Nie podano opisu zmian
Rogoda (dyskusja | edycje)
Nie podano opisu zmian
Linia 80: Linia 80:
|-
|-
| 1|| 1|| 1|| 1|| 1|| 0|| 1|| 1
| 1|| 1|| 1|| 1|| 1|| 0|| 1|| 1
|}
{| border="1"
! Numer<br/>funkcji!! <math>p=0</math><br/><math>q=0</math>!! <math>p=0</math><br/><math>{q=1}</math>!!<math>p=1</math><br/><math>q=0</math>!! <math>p=1</math><br/><math>{q=1}</math>!! &nbsp;!! &nbsp;
|-
| 0|| 0|| 0|| 0|| 0|| &nbsp;|| <math>F</math>
|-
| 1|| 0|| 0|| 0|| 1|| &nbsp;|| <math>\wedge</math>
|-
| 2|| 0|| 0|| 1|| 0|| &nbsp;|| <math>\neg (p \Rightarrow q)</math>
|-
| 3|| 0|| 0|| 1|| 1|| &nbsp;|| <math>\textnormal{p}</math>
|-
| 4|| 0|| 1|| 0|| 0|| &nbsp;|| <math>\neg (q \Rightarrow p)</math>
|-
| 5|| 0|| 1|| 0|| 1|| &nbsp;|| <math>\textnormal{q}</math>
|-
| 6|| 0|| 1|| 1|| 0|| &nbsp;|| <math>XOR</math>
|-
| 7|| 0|| 1|| 1|| 1|| &nbsp;|| <math>\vee</math>
|-
| 8|| 1|| 0|| 0|| 0|| &nbsp;|| <math>NOR</math>
|-
| 9|| 1|| 0|| 0|| 1|| &nbsp;|| <math>\Leftrightarrow</math>
|-
| 10|| 1|| 0|| 1|| 0|| &nbsp;|| <math>\neg q</math>
|-
| 11|| 1|| 0|| 1|| 1|| &nbsp;|| <math>q \Rightarrow p</math>
|-
| 12|| 1|| 1|| 0|| 0|| &nbsp;|| <math>\neg p</math>
|-
| 13|| 1|| 1|| 0|| 1|| &nbsp;|| <math>p \Rightarrow q</math>
|-
| 14|| 1|| 1|| 1|| 0|| &nbsp;|| <math>NAND</math>
|-
| 15|| 1|| 1|| 1|| 1|| &nbsp;|| <math>T</math>
|}
|}

Wersja z 17:28, 4 sie 2006

Złożoność czasowa Złożoność pamięciowa
Maszyna dodająca f(0)=1
f(1)=3
f(n)=n+3;n2
f(0)=2
f(1)=3
f(n)=n+1;n2
Maszyna rozpoznająca ww f(n)=6+8++(n+3)+2;n=2k+1
f(n)=5+7++(n+3)+1;n=2k
f(n)=n+1


0 1 ... ...
Cell1 Cell2


0 1
 0   1   1 
 1   0   1 


p ¬p
 0   1 
 1   0 


0 1
 0   0   0 
 1   0   1 
0 1
 0   0   1 
 1   1   1 
Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{q}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p} \wedge \textnormal{q}} ¬(pq) ¬p ¬q ¬p¬q
 0   0  0 1 1 1 1
 0   1  0 1 1 0 1
 1   0  0 1 0 1 1
 1   1  1 0 0 0 0


Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{q}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{r}} Parser nie mógł rozpoznać (błąd składni): {\displaystyle (\textnormal{p} \wedge \textnormal{q})} (pr) (q¬r) (pr)(q¬r) (pq)((pr)(q¬r))
0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 1
0 1 0 0 0 1 1 1
0 1 1 0 0 0 0 1
1 0 0 0 0 0 0 1
1 0 1 0 1 0 1 1
1 1 0 1 0 1 1 1
1 1 1 1 1 0 1 1


Numer
funkcji
p=0
q=0
p=0
q=1
p=1
q=0
p=1
q=1
   
0 0 0 0 0   F
1 0 0 0 1  
2 0 0 1 0   ¬(pq)
3 0 0 1 1   Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{p}}
4 0 1 0 0   ¬(qp)
5 0 1 0 1   Parser nie mógł rozpoznać (błąd składni): {\displaystyle \textnormal{q}}
6 0 1 1 0   XOR
7 0 1 1 1  
8 1 0 0 0   NOR
9 1 0 0 1  
10 1 0 1 0   ¬q
11 1 0 1 1   qp
12 1 1 0 0   ¬p
13 1 1 0 1   pq
14 1 1 1 0   NAND
15 1 1 1 1   T