By a minimal interpretation that makes a formula

Assignment Help C/C++ Programming
Reference no: EM13149986

Aims: The main purpose of the assignment is to let you

  •  perform operations on les;
  •  manipulate structures;
  •  manipulate pointers;
  •  implement an interface.

General description

Your program will read two kinds of data from two les: names and predicates. It will read a formal expression from standard input and check whether that expression is syntactically correct, i.e., built from the names and predicates that have been read, together with a few boolean operators. Then your program will read from a third le a set of basic facts assumed to be true, and check whether the formal expression itself is true. Finally, it will nd out whether it is possible to make some basic facts true to make the formal expression itself true (this being trivially the case if the answer to the previous question is positive), and in case it is, write a possible solution to a le. The program will use an abstract interface that you will have to implement. The interface and the client program will be provided.

Your program will:

 take a sequence of symbols from standard input (possibly over many lines), ending in Carriage return followed by Control D (Control Z in Windows) to signal end of input;

determine if the sequence of symbols is a formula;

 if the answer to the previous question is yes, determine if the formula is true in the interpretation stored in true_atoms.txt;

 if the previous question has been addressed and has received a negative answer, determine if the formula is satis able and if it is, write a minimal interpretation that makes it true in a le witnesses_satisfiability.txt, one atom per line (in any order) with no repetition.

By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.


Download:- code.tar.gz

Reference no: EM13149986

Questions Cloud

Least break even on the sale of the items : If Lampley Company decides to re-work the items, how much should the company be willing to invest to ensure that they would at least break even on the sale of the items?
Compute private saving-public saving and national saving : Find the equilibrium interest rate. Now suppose that G rises to 1,250. Compute private saving, public saving, and national saving. d. Find the new equilibrium interest rate.
Substantive ways in which herb and renee may use : From the scenario, suggest substantive ways in which Herb and Renee may use the information in the table in order to ascertain the profit maximizing level of output and price. Provide a rationale for your decision.
Promissory note payable to the order : A $5,000 promissory note payable to the order of Neptune is discounted to Bane by blank endorsement for $4,000. King steals the note from Bane and sells it to Ott, who promises to pay King $4,500. After paying King $3,000, Ott learns that King sto..
By a minimal interpretation that makes a formula : By a minimal interpretation that makes a formula true, we mean that if one atom is removed from the interpretation then the resulting interpretation does no longer make the formula true.
Find score of on the college entrance exam : A score of on the college entrance exam. Assuming that average refers to the mean, which of the following claims must be true based on this information?
Net cost of machine for capital budgeting purposes : What is the net cost of the machine for capital budgeting purposes? (That is, what is the year 0 net cash flow?) What are the net operating cash flows in Years 1,2, and 3? What is the additional Year 3 cash flow (that is, the after-tax salvage and th..
Find the activation energy for this sterilisation process : milk is pasteurised when heated to 63 C for 30 minutes, but if it is heated to 74 C it takes only 15 seconds for the same result. Find the activation energy for this sterilisation process
Petition in bankruptcy : Burton did not notify Wilson of these facts. Two days later when Burton again presented the instrument for payment, Burton was told that Foxx's creditors had filed a petition in bankruptcy that morning. Which of the following statements is true?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write c program-visual studio to scan multiple text files

Write program in C or C++ and Visual Studio to scan multiple text files and count number of occurrences of each word in those files. Use binary tree to keep track of all words.

  Write program to count occurrences of each word in text

Write down C++ program to read following text. Count occurrences of each word in text and keep this count in list of elements containing (word, occurrence count) pairs.

  Build a traffic light system - microcontroller system

Build the whole system with 3 RAG units and three puffin crossing units and build a team to work on this mini-project, be careful in selecting your team member.

  Write a c function to convert gallons-quarts-pints and cups

Write a C function named liquid() that is to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups.

  Represent an instruction supported by simpletron

Implementation contains a Simpletron class and several supporting Instruction classes

  Project

Unit 3 Individual Project SSCI210 – 1304B – 01 A typical individual who commits who commits hate crimes whether it is against or aimed at the Gay/lesbian community , the persons of color or the Jewish community, ( I mention these three because they a..

  Prepare a program that uses the pthread library

Prepare a C/C++ program that uses the PTHREAD library to create threads and mutexes to synchronize them.

  Iterative programming problem solving approaches

Write a recursive function void reverse ( ) that reverse a sentence

  Write a program that converts between app and ppm values

Write a simple program that converts between APP and PPM values

  Write a program that computes the cost of long distance call

Write a program that computes the cost of a long distance call. The cost of the call is determined according to the following rate schedules.

  Implementation of sorting technique

Implementation of sorting technique

  Use the top-down modular approach to design program

Use the top-down modular approach and pseudocode to design a suitable program to solve it. Where appropriate, use defensive programming techniques.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd