Discrete Mathematics

For each of these sentences, state what the sentence means if the logical connective or is an inclusive or (that is, a disjunction) versus an exclusive or. Which of these meanings of or do you think is intended?

As usual, we should start with the appropriate definitions. Remember that in mathematics, we must know the definitions before we can start trying to solve a problem. Definitions Let p and q be propositions. The disjunction of p and q, denoted by p ∨ q, is the proposition “p or q.” The disjunction p ∨

For each of these sentences, state what the sentence means if the logical connective or is an inclusive or (that is, a disjunction) versus an exclusive or. Which of these meanings of or do you think is intended? Read More »

Propositional logic Exercise 11. Write these propositions using p and q and logical connectives (including negations)

Solve the following exercise. 11. Let p and q be the propositions p: It is below freezing. q: It is snowing. Write these propositions using p and q and logical connectives (including negations). a) It is below freezing and snowing.b) It is below freezing but not snowing.c) It is not below freezing and it is

Propositional logic Exercise 11. Write these propositions using p and q and logical connectives (including negations) Read More »

Which of these sentences are propositions? What are the truth values of those that are propositions?

Propositional logic is a very important topic in Discrete Mathematics. It is part of the foundations every student should know. In this post, I’ll show how I solve this specific type of exercise. In mathematics, definitions are very important. As I always recommend to my students, when you are starting a new topic, and you

Which of these sentences are propositions? What are the truth values of those that are propositions? Read More »

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that contain exactly three 0s.

We will follow a similar approach to previous exercises to solve this exercise. Let’s define 5 states as follows: S0, the initial state S1 is the state when the automata read exactly one 0 S2 is the state when the automata read exactly two 0s S3 is the state when the automata read exactly three

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that contain exactly three 0s. Read More »

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that do not contain three consecutive 0s.

We will follow a similar approach to previous exercises to solve this exercise. Let’s define 4 states as follows: S0, the initial state S1 is the state when the automata read a 0 S2 is the state when the automata read a sequence of two 0s S3 is the state when the automata read a

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that do not contain three consecutive 0s. Read More »

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that contain the string 101

We will follow a similar approach to previous exercises to solve this exercise. Let’s define 4 states as follows: S0, the initial state S1 is the state when the automata read a 1 S2 is the state when the automata read a 0 after a 1 S3 is the state when the automata read a

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that contain the string 101 Read More »

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that end with 10

This exercise is a bit more difficult than the previous one. To solve this exercise, let’s use the following strategy: define states in which the automaton can be if it just reads a 1 or a 0. – We can have a state S1 which means the automaton read 0s. Therefore, from the state S0

Construct a deterministic finite-state automaton that recognizes the set of all bit strings that end with 10 Read More »