Question: 5 Decidability 5.1. (10 pts) A bug in a a computer program causes the program to crash (generate a core dump). A more liberal definition

5 Decidability 5.1. (10 pts) A bug in a a computer program causes the program to crash (generate a core dump). A more liberal definition of bug is one or more instructions that cause the program to output a wrong answer The Bug Problem (BP) is: Input: A description of a program P and its input x. Output: If P (x) has a bug, then True. Otherwise, False. Assume there a program, bugDetect, that decides the Bug Decision Problem (BP) 5 (Bug Detection 5) bugDetect (program P, input x) il if (Px) has a bug) then true; else false; Use the existence of this program to construct a contradiction that shows BP is undecidable 5 Decidability 5.1. (10 pts) A bug in a a computer program causes the program to crash (generate a core dump). A more liberal definition of bug is one or more instructions that cause the program to output a wrong answer The Bug Problem (BP) is: Input: A description of a program P and its input x. Output: If P (x) has a bug, then True. Otherwise, False. Assume there a program, bugDetect, that decides the Bug Decision Problem (BP) 5 (Bug Detection 5) bugDetect (program P, input x) il if (Px) has a bug) then true; else false; Use the existence of this program to construct a contradiction that shows BP is undecidable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
