Back to marketplace

2018 p1

No description yet. This curated deck is ready for daily study.

Total cards: 13•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (13)

#1
Front (Question)

represent 5 - 3 in RPN

Back (Answer)

5 3 -

#2
Front (Question)

represent 3 + 4 * 2 - 1 in RPN

Back (Answer)

3 4 2 * + 1 -

#3
Front (Question)

why is RPN used instead of infix notation ( e.g. of infix: 5 + 3)

Back (Answer)

simple for a computer to evaluate simpler to code algorithm

#4
Front (Question)

how can a stack be used in the process of evaluating an expression in Reverse polish notation

Back (Answer)

from LHS push values onto stack each time operator reached pop two values off the stack and apply operator to them add result to stack

#5
Front (Question)

two components of stack frame

Back (Answer)

local variables parameters

#6
Front (Question)

Explain the circumstances in which it would be more appropriate to use an adjacency list instead of an adjacency matrix.

Back (Answer)

when there are few edges between vertices when edges are rarely changed

#7
Front (Question)

how do you know if a graph isnt a tree

Back (Answer)

if it contains a cycle

#8
Front (Question)

weighted graph

Back (Answer)

a graph where each edge has a weight

#9
Front (Question)

halting program

Back (Answer)

Determining if a program will halt

#10
Front (Question)

Why is it not possible to create a Turing machine that solves the Halting problem?

Back (Answer)

there is no algorithm that solves a halting program

#11
Front (Question)

components of a turing machine

Back (Answer)

finite set of states a set of transition rules halting states current state

#12
Front (Question)

universal turing machine

Back (Answer)

a turing machine that can execute. it has the ability to read input from a tape, process information based on a given program, and produce output on the same tape.

#13
Front (Question)

Why can a Universal Turing Machine be considered to be more powerful than any computer that you can purchase?

Back (Answer)

It has an infinite amount of memory