100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CS 326 Final Exam

Puntuación
-
Vendido
-
Páginas
7
Grado
A+
Subido en
10-08-2025
Escrito en
2025/2026

CS 326 Final Exam finite automata: chars go into a lexer to make tokens CFG/PDA: tokens go into parser to make AST these then do other stuff - answersWhat is the lexer parser diagram? Any arbitrary program fed to, lets call an analyzer, can it, with infinite memory and speed, determine if the arbitrary program will stop sometime in the future? - answersWhat is the halting problem? Symmetry in language design. - answersWhat is orthogonality? statically typed and dynamically typed. - answersWhat are the two language "types"? <assign> -> <var> = <expression> - answersWhat is Backus-Naur Form? The process of breaking up symbols, typically text, into tokens. - answersWhat is lexing? True - answersT/F. Regular grammars are finite automata. - answersexcercise: derive and parse tree <program> —> begin <stmt_list> end <stmt_list> <stmt> I <stmt> ; <stmt_list> <stmt> —><var>=<expression> <var>—>A I B I C <expression> —> <var> + <var> | <var> - <var> | <var> - answersexcercise: derive and parse tree

Mostrar más Leer menos
Institución
Cs 326
Grado
Cs 326









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Cs 326
Grado
Cs 326

Información del documento

Subido en
10 de agosto de 2025
Número de páginas
7
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CS 326 Final Exam
finite automata: chars go into a lexer to make tokens

CFG/PDA: tokens go into parser to make AST

these then do other stuff - answers✔✔What is the lexer parser diagram?



Any arbitrary program fed to, lets call an analyzer, can it, with infinite memory and speed, determine if
the arbitrary program will stop sometime in the future? - answers✔✔What is the halting problem?



Symmetry in language design. - answers✔✔What is orthogonality?



statically typed and dynamically typed. - answers✔✔What are the two language "types"?



<assign> -> <var> = <expression> - answers✔✔What is Backus-Naur Form?



The process of breaking up symbols, typically text, into tokens. - answers✔✔What is lexing?



True - answers✔✔T/F. Regular grammars are finite automata.



- answers✔✔excercise: derive and parse tree



<program> —> begin <stmt_list> end

<stmt_list> <stmt> I <stmt> ; <stmt_list>

<stmt> —><var>=<expression>

<var>—>A I B I C

<expression> —> <var> + <var> | <var> - <var> | <var>



- answers✔✔excercise: derive and parse tree

, <assign> -> <id> = <expr>

<id> -> A | B | C

<expr> -> <id> + <expr>

| <id> * <expr>

| (<expr>)

| <id>



When one input can produce two different outputs, i.e. parse trees. - answers✔✔What is ambiguity?



No, it is impossible to prove a grammar is not ambiguous, but one can prove a grammar is ambiguous by
finding an example. - answers✔✔Can you prove a grammar is not ambiguous?



LL: left to right, left-most derivation with no look ahead. - answers✔✔Define LL generator



GLR: generalized left-to-right. right-most derivation and handles some ambiguity. - answers✔✔Define
GLR generator



Adaptive LL*: allows some ambiguity in certain parts. Balances flexibility and speed. - answers✔✔Define
Adaptive LL* generator



Allows optional conditionals in grammar writing and recursion.

e -> (+ | -) term | term

T -> T [+ T] - answers✔✔What is EBNF?



e -> e (+ | -) term | term

term -> term (* | /) factor | factor

factor -> factor ^ exponent | id

exponent -> id
$8.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
newborn

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
newborn stuvia
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
0
Miembro desde
5 meses
Número de seguidores
0
Documentos
197
Última venta
-

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes