Inverse of the contrapositive

Assignment Help Basic Computer Science
Reference no: EM131167260

1. State in English the inverse of the contrapositive of "If it is raining, then my lawn is wet."

2. Let S be a set, R be a binary relation on S, and x an element of S. Translate the following into a logical expression with the same meaning:

the negation of the statement "For all x in S, xRx."

3. Let the function f from the positive integers to the positive integers be defined by f(x) = x*x (where the asterisk * denotes ordinary integer multiplication). Explain why this function f is or is not an onto function.

4. Let sets A and B be defined as follows: A = {a1} and B = {b1, b2}. List as separate sets of ordered pairs all the one-to-one functions from A to B, or explain why there are no such functions.

5. Let the set A be defined as A = {a, b, c, d}, and let the relations R and S on the set A be defined as

R = {(d, a), (a, b), (b, c), (b, d) }, and S = {(a, a), (b, d), (d, c)}.

Explain, using the definition of composition of relations on a set (see the second paragraph in Section 5.4 of the zyBook) why the ordered pair (b, d) is or is not an element of the composition of relations R and S (denoted S o R).

6. What is the value of the variable count after all the loops in the following pseudocode execute?

count:=0

For i= 1 to 2

For j=1 to 2

count:=2i[(j*count)+j]

End-for

End-for

8. Explain why a multiplicative inverse mod 7 of 13 does or does not exist. If one does exist, give a value for it and use appropriate calculations to show that it is a multiplicative inverse of 13 mod 7.

9. A husband and wife and their two children line up for a photo. How many ways are there for these four people to line up so that the husband and wife are *not* next to each other? Be sure to show your work.

10.  Suppose you randomly draw two cards from a standard deck without replacement. What is the probability that neither card is the ace of spades?

11. Let V = {a, b, c, d, e} be a vertex set and E = { {a,c}, {b,d}, {c,d}, {d,e}, {e,a}} be the edge set corresponding to V. Explain why the pair (V, E) is or is not a tree.

12. Let vertex sets V1 and V2 be defined by V1= {1, 2, 3} and V2 = {a, b, c}. Let E1 = { { 1, 2}, {2, 3} }, and let E2 = { {a, b},  {b, c} } be the edge sets corresponding to the vertex sets V1 and V2, respectively. Write, as a set of ordered pairs, a function f that is a bijection from V1 to V2, satisfying the following condition: if x and y are elements in V1 such that {x,y} is in E1, then f(x) and f(y) are elements in V2 such that {f(x),f(y)} is in E2, and show that your function f satisfies this condition.

Note: you do not need to show that your function f is a bijection (though it must be, or you won't get any credit), but you DO need to show that it satisfies the condition "if x and y are elements in V1 such that {x,y} is in E1, then f(x) and f(y) are elements in V2 such that {f(x),f(y)} is in E2."

Reference no: EM131167260

Questions Cloud

How many should mr ds order for the week : If Mr. D's wants to have only a 1% chance of running out of Coke by the end of the week, how many should Mr. D's order for the week?
What is the efficient number of fireworks for this society : What is the efficient number of fireworks for this society? Suppose the government decides to provide the efficient level of output found above. To pay the fireworks, the government taxes J and K, using a Lindahl pricing Scheme. What are the Lindah..
What is the producers risk for given sampling plan : Suppose the customer considers a batch with 3% defectives acceptable. - What is the producer's risk for this sampling plan?
What is your own stand on off-shoring : Are the views expressed there contradictory or complementary to the views in your textbook? Give a brief comparison of the two. What is your own stand on off-shoring? Give economically sound arguments to support your position
Inverse of the contrapositive : 1. State in English the inverse of the contrapositive of "If it is raining, then my lawn is wet." 2. Let S be a set, R be a binary relation on S, and x an element of S. Translate the following into a logical expression with the same meaning: the ne..
Probability that sample indicate that smith is preferred : If 1500 voters are sampled randomly, what is the probability that the sample will indicate that Smith is preferred to Jones?
Extended advertising campaign on prime-time television : Assume you are a brand manager for a food product that is consumed by all Americans---blacks, whites, Hispanics, Asians, and others. You are considering running an extended advertising campaign on prime-time television that uses Latino actors and app..
Incomplete description of operations : Given the following incomplete description of operations, get all applicable business rules to establish entities, relationships, optionalities, connectivities, and cardinalities. Draw the fully labeled and implementable Crow's Foot ERD based on t..
List some points on the new demand curve for wheat : Now suppose that in the spirit of Christmas, a coalition of rich people decide to buy wheat and resell it to poor people for half of whatever the rich people have to pay. List some points on the new demand curve for wheat

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is the duration of a particular type

A microprocessor is clocked at a rate of 8 GHz. a. How long is a clock cycle? 1/frequency=1/(8*10^9) b. What is the duration of a particular type of machine instruction consisting of six clock cycles?

  Find the average number of books borrowed per member

Find the average number of books borrowed per member

  Identifying potential malicious attacks

You have just been hired as an Information Security Engineer for a video game development company. The organization network structure is identified in the below network diagram and specifically contains:

  Guidelines regarding the initial comment section

Observe the usual guidelines regarding the initial comment section, indenting, and so on.  In addition, In if-else statements, indent statements to be executed for if or else condition three spaces.  Align else or else if with corresponding if. I..

  Amount to the total amount of deposits

You put $394per month in an investment plan that pays an APR of 6% compounded monthly. How much money will you have after 17years? Compare this amount to the total amount of deposits made over the time period.

  Various types of database management systems

A ) Write 2-3 pages on Database Management Systems (DBMS) covering the following: Various types of database management systems Commercial RDBMS in the market today.

  Item number in the inventory

Write a console program that will ask the user for an item number in the inventory and display the name of that item. Stay in a loop so that the user may enter the item number multiple times. Use the letter E to exit the application. Show an error me..

  Find a recent article concerning hacking or cyber espionage

A report developed by security firm McAfee states that "120 countries are developing ways to use the Internet as a weapon to target financial markets, government computer systems, and utilities." A number of experts are calling this the "cyber co..

  Write a method that turns the snake toward the frog

Write a method that turns the snake toward the frog and slides the snake forward. Then, have the frog turn to the pond and jump in. Your method should use a parameter to specify which frog is escaping.

  Html page with javascript using if statement

The game of "23" is a two-player (computer versus player) game that begins with a row of 23 toothpicks. Players take turns, withdrawing 1, 2 or 3 toothpicks at a time. The player to withdraw the last toothpick loses the game.

  How would you describe graph

1) Is this a function? 2) What is its domain? 3) What is its range? 4) What is its y-intercept, if any?

  Pseudocode description of a function that uses only d and q

Suppose you have a deque D containing the numbers (1,2,3,4,5,6,7,8), in this order. Suppose further that you have an initially empty queue Q. Give a pseudo-code description of a function that uses only D and Q (and no other variables or objects) and ..

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