Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi, question is from Compurer Science Logic, please answer part (b) only: In the following, we wil be looking at properties of sequences of characters
Hi, question is from Compurer Science Logic, please answer part (b) only:
In the following, we wil be looking at properties of sequences of characters (strings), spec ified by formulae in Predicate Logic. For this, we will be using the following definitions of predicates about strings. Moreover, our universe are just the characters A, B,C. All our quantifications range over these three values F(x): r is the first character of the string, e.g. F(A) is true for the string ABBA O(x): the character x occurs in the string, e.g. -O(C) is true about ABBA N(x, y): the character r occurs directly as the left neighbour of the character y in the string. For example, N(B,A) and MA, A) are true for ABBA (a) Based on these definitions translate the following predicates about strings into English, and for each predicate give one non-empty string for which the predicate is true, and one for which it is false (b) Now we are trying to find properties that distinguish two sets of strings. Given these two sets X and Y write a property in English that is true for all the strings in set X and that is false for all the strings in set Y. Then give a formula in Predicate Logic that expresses your proposition using just our predicates F, N and O
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started