Questions: Program Synthesis

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

How does counterexample-guided inductive synthesis (CEGIS) differ from exhaustive enumerative search?

ACEGIS only works for hardware, while enumerative search works for software
BCEGIS iterates between a synthesizer that proposes candidates from a finite set of examples and a verifier that checks candidates against the full specification, using counterexamples from failed checks to refine future proposals. Enumerative search tries all programs of increasing size and checks each against the full specification directly
CCEGIS is less precise than enumerative search
DEnumerative search uses machine learning while CEGIS uses logic
Question 2 True / False

Program synthesis from input-output examples alone risks overfitting — producing a program that works on the given examples but fails on unseen inputs.

TTrue
FFalse
Question 3 Short Answer

Explain how program synthesis relates to program verification, and why synthesis is sometimes described as 'the inverse of verification.'

Think about your answer, then reveal below.