שפות מונים ואוניברסלית Flashcards

1
Q

שפת מונים, יצוגים

A

input: x1,x2,x3,…
output: Y
Labels: A,B,C,D,E each numbered to infinity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

שפת מונים, פעולות

A

1: v <- v+1
2: v <- v-1
3: if v != go to L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Coding 2 numbers to single number

A

[x,y] = 2ˣ(2Y+1) - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Coding k number to single number

A

Based o the idea that you can identify the multipliers if they are prime numbers
[x1, x2, …, xk] = 2ˣ¹ × 3ˣ² + 5ˣ³ ⋯ pˣᵏ - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Coding a variable in the language

A

Y, X1, Z1, X2, Z2, X3, Z3…
#(v) = place in the series

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Coding a label in the language

A

A1, B1, C1, D1, E1, A2…
#(L) = place in the series

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Coding an instruction in the language

A

(I) = <a, <b, c» (coded twice using 2 numbers coding)

a - label, b - instruction type, c - variable

a = 0 if no label, else #(L)
b = {0: v <- v, 1: v <- v+1, 2: v <- v-1, #(L)+2 if. v!=0 goto L}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The universal program

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly