Skip to main content

All Questions

6 votes
5 answers
420 views

Need an intuitive example for how "P is necessary for Q" means "Q$\implies$P"?

I am confused about how "P is necessary for Q" means "Q$\implies$P" (source: Kenneth Rosen DMGT). Intuitively, I interpret "P is necessary for Q" as "for Q to happen,...
Ved K's user avatar
  • 69
0 votes
0 answers
50 views

Determining if an argument is valid using equivalence transformations

I am really struggling with this problem. I am able to mentally say that the argument is valid but unable to prove it using algebra. The problem is: Premise 1: (p —> q) ^ (r -> s) Premise 2: p ...
Lovely's user avatar
  • 21
-2 votes
2 answers
152 views

Logic equivalence question

I have a question about discrete mathematics question that I have been struggling to solve. Here is the question: Each of the two rooms (room I and room II) contains either a lady or a tiger. If a ...
Rose Pink's user avatar
0 votes
1 answer
51 views

Formal proof for a set of closed logical sentences.

I am currently taking a course in logic for computer science and reading a book by M. R. A. Huth and M. D. Ryan, Logic in Computer Science. I came across an exercise where I understand but need help ...
KTAP's user avatar
  • 31
1 vote
2 answers
130 views

How to formalize and prove a reasoning as propositional logic?

If both E and H are at a lecture, then A won't be there. If E is at the lecture, then H will also be there. If A is not at the lecture, then E will be there. Thus, either E but not A is at the lecture,...
User's user avatar
  • 59
1 vote
4 answers
477 views

How to show that $p∨q, q∨r, p\to ¬r ⊢ q$?

How to prove $p∨q, q∨r, p\to ¬r ⊢ q$ using natural deduction? I don't really know how to go about it since I have 2 or statements, but here is my try. $p∨q$ premise $q∨r$ premise $...
User's user avatar
  • 59
1 vote
1 answer
220 views

Design a finite state machine that performs the serial addition of three arbitrary binary numbers

Design a finite state machine (by its transition diagram) that performs the serial addition of three arbitrary binary numbers. For a finite state machine for two binary numbers I got it, but for 3 ...
RV math's user avatar
  • 67
4 votes
1 answer
285 views

Printing neatly

I'm working on the following problem (which is not my actual question) Consider the problem of neatly printing a paragraph with a monospaced font (all characters having the same width). The input ...
C.C.'s user avatar
  • 910
0 votes
0 answers
58 views

Given $f \in \Omega(g)$, prove that $\mathcal{O}(g) \subseteq \mathcal{O}(f)$

My proof goes like this: By definition $f \in \{ g:\mathbb{N} \rightarrow \mathbb{R}|\exists \beta > 0 \exists n_0 \in \mathbb{N} \forall n \geq n_0 : 0 \leq f(n) \leq \beta g(n) \}$ therefore $0 \...
a_student_49's user avatar
2 votes
4 answers
72 views

Prove $ \lg (n + 1) - 1\le h \le \lg n\implies h=\lfloor\lg n\rfloor$

For integer $n>0$ and integer $h$ prove ($lg$ means $log_2$) $$ \lg (n + 1) - 1\le h \le \lg n\implies h=\lfloor\lg n\rfloor $$ I'm thinking I may use $x-1<\lfloor x \rfloor \le x \le \lceil x \...
C.C.'s user avatar
  • 910
2 votes
1 answer
29 views

$(\lambda z. zy)(\lambda z. zy)$ - reducing using $\beta$ reduction and $\alpha$ conversion

Good day . I need to reduce the following expression of lambda calculus: $(\lambda z. zy)(\lambda z. zy)$ Now, since I am having the variable $y$ in both the left and right pair of parentheses, I ...
john doe's user avatar
  • 893
0 votes
1 answer
40 views

Is the stable marriage problem defined for $0$ people?

When proving properties of algorithms which are supposed to solve the stable marriage problem, I find myself unable to prove them sometimes in the case of there being $0$ things to pair with each ...
Princess Mia's user avatar
  • 3,019
3 votes
4 answers
685 views

Why can't well ordered sets have infinite decreasing subsequences?

Chapter 2 of Mathematics for Computer Science presents the following: Define the set $\mathbb F$ of fractions that can be expressed in the form $\frac{n}{n+1}$. Define $\mathbb N$ as the set of ...
Dean DeRosa's user avatar
1 vote
1 answer
112 views

Why is a head redex always the leftmost redex?

I am studying lambda-calculus from Sorensen's book (Lectures on the Curry-Howard Isomorphism, 2006 edition), and on page 15 there is a definition of 'head redex' in a lambda term $\lambda\vec{z}.(\...
Νικολέτα Σεβαστού's user avatar
0 votes
1 answer
31 views

How to find the location of an object moving through a graph with inputs of arcs?

I have a bidirected graph which represents rooms in a building. I have scanners set up on doorways which can detect an object moving through them (but not direction). Based on this information what ...
Alex Proshkin's user avatar

15 30 50 per page
1 2
3
4 5
48