AI_CA_1_AIRISH.R.PILLAI_B463
Name :- Airish Pillai Roll no :-B463 subject :- Artificial Intelligence Prn no :- 2246491245509 Que :- Give a complete problem formulation for each of the following. Choose a formulation that is precise enough to be implemented. c. You have a program that outputs the message “illegal input record” when fed a certain file of input records. You know that processing of each record is independent of the other records. You want to discover what record is illegal. Ans :- To precisely formulate the problem where you need to discover the illegal input record in a file, you can frame it as follows: Problem Formulation Given: Input: A file containing a series of input records. Let the total number of records in the file be denoted as nn. A program that processes these records one by one and outputs the message "illegal input record" if a record is found to be illegal. Program: The program, when fed a record, will process the record and output either: "illegal input record"...