Trær og mengder Flashcards

1
Q

teste for par

A

pair?

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

car cdr

A

cadr

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

car cdr cdr

A

caddr

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

variadiske prosedyrer

A
(define (sum . args)
    (if (null? args)
        0
        (+ (car args)
            (apply sum (cdr args)))))
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

apply

A

(apply + ‘(1 2 3))

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

komprimering - terminologi

A

fast vs. variabel lengde
unikt dekodbar (utvetydig)
prefikskode
ikke-uniform distribusjon

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

abstraksjonsbarriere

A

skjuler implementasjonsdetaljene

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

symboler og den tomme lista ‘() er ____

A

symboler og den tomme lista ‘() er konstanter

Dette har betydning for likhetstester:
> (eq ‘() ‘())
#t

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