Recent content by fsbadr

  1. F

    Bit shifting and bitwise operators

    Homework Statement folks, I have a small problem understanding a function as to what its doing: I have run this program in C++. I will comment the lines of code as per my understanding. Your insight would be useful unsigned int myfunc(unsigned int n) { // for n here I took 1200...
  2. F

    Propositional logic Discrete Mathematics

    Matt, Thanks. This is my first class at discrete math. I just got this assignment yesterday and am also attempting to solve this myself. Call me slow, but I guess everything comes to everyone at a different pace. You can't blame me for trying and I while I may be trying wrong, atleast I...
  3. F

    Propositional logic Discrete Mathematics

    I made up a truth table (I know this is a crude way) but also came up with 4 Truth values. Now, if all the statements are true then the fifth statement which is the conclusion is true also, else it is false. So, a,b,c and d are true?
  4. F

    Propositional logic Discrete Mathematics

    Thank you for the hint. I will surely look into it.
  5. F

    Propositional logic Discrete Mathematics

    It is possible for more than one of these statements to be true. I have come up with n because of the number of statements is 5 and assigned n to the number of statements. If you feel this is not right, you could point me in the right direction and I could get started on that.
  6. F

    Propositional logic Discrete Mathematics

    Can someone please verify whether I am right or not? Thanks a lot
  7. F

    Counting Handshakes: Solving the Dinner Dilemma

    Taking a look at the problem from the beginning...there is a sum of 8 in every combination...0/8, 1/7,2/6,3/5, if we go with this pattern and get to the middle i.e. 4 there is no one else to make a pair with, all the pairs have been done, the remaining shaker 4 then would be paired with someone...
  8. F

    Propositional logic Discrete Mathematics

    [SOLVED] Propositional logic Discrete Mathematics Homework Statement Assuming atleast one of the following statements is true, which one is it? why? a. Exactly one of these statements is true b. Exactly two of these statements are true c. Exactly three of these statements are true d...
  9. F

    Counting Handshakes: Solving the Dinner Dilemma

    Hi, Taking up from where you left off, I only rearranged the lines for my understanding and have come up with the following: The 0 shaker didn't shake hands with the 8 shaker. Therefore the 0 shaker must be the 8 shaker's husband/wife. The 8 shaker shook hands with everyone except...
  10. F

    Counting Handshakes: Solving the Dinner Dilemma

    If we go by the above assumption, for the person who shook 2 hands shook everybody's hand including shaker 8 and 7. That still would not be accurate. Could somebody please help me in getting a more precise method of determining the solution?
  11. F

    Counting Handshakes: Solving the Dinner Dilemma

    While that substitution may be valid, I base my assumptions on the fact that John was the one to ask the question, which implies that he knows all the guests so we can also put this in the form of the following: p=John q=Mary using p->q then if p then q hence true, so if John knows all...
  12. F

    Counting Handshakes: Solving the Dinner Dilemma

    Upon reading the question and logically pondering, I think that Mary shook 0 hands based on: They had initially agreed to go to dinner with 4 other couples, after the dinner it is John who takes the lead in asking questions, which implies that John knows everybody which further implies that...
  13. F

    Counting Handshakes: Solving the Dinner Dilemma

    Based on the problem, how would I be able to find out who is married to who...I would just need a little direction, it would not be possible to construct a truth table as that would not be the right approach.
  14. F

    Counting Handshakes: Solving the Dinner Dilemma

    Would this assumption be incorrect that the person who shook hands with 8 people would not have shook hands with the spouse and himself/herself?
  15. F

    Counting Handshakes: Solving the Dinner Dilemma

    You are right, that did not come to me. However looking at the problem more closely, there is a person who shook hands 0 times, meaning that person knew everybody there. That would imply to be Mary, but how would I be able to prove that answer. If we take into consideration the person who...
Back
Top