New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Armani Kunde


Armani Kunde
GPA 3.7

Khaled Ibrahim

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Khaled Ibrahim
Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 3 page Class Notes was uploaded by Armani Kunde on Monday September 28, 2015. The Class Notes belongs to CS 381 at Old Dominion University taught by Khaled Ibrahim in Fall. Since its upload, it has received 28 views. For similar materials see /class/215311/cs-381-old-dominion-university in ComputerScienence at Old Dominion University.

Similar to CS 381 at ODU

Popular in ComputerScienence




Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/28/15
CS 381 Midterm Review You should be able to Nt I 5 05quot b ib ib Ib Il WOON ALANHOquot39 Produce the truth table for a proposition Prove a proposition is a tautology contradiction or is logically equivalent to another proposition using the logical equivalence laws and using truth tables Translate quanti ed predicates to English and vice versa Given the appropriate de nitions for variables and a universe of discourse determine the truth value of a statement that contains quanti ers Given a set of premises construct a proof using the rules of inference Given de nitions for multiple sets determine subset superset strict subset and strict superset relationships Determine set union intersection and difference Determine the power set of a set Determine the Cartesian product of two sets Determine the cardinality of a set including the cardinality of a power set Draw a Venn diagram for sets Apply a function to a set Given a function determine if it is inj ective surjective andor bij ective Given two function de nitions nd the composition of the functions Compute the ceiling and oor of any real number Write pseudocode to solve a listbased problem Given pseudocode for an algorithm write a function that calculates the number of times a particular line of the algorithm is executed Given a function determine and prove bigO bigOmega and bigTheta bounds Determine whether two integers are congruent mod X where X is any integer Compute the prime factorization of some number less than 100 Find the least common multiple of two natural numbers Find the greatest common divisor of two natural numbers Review Problems 1 N E 4 Produce the truth table for the following propositions a XAy gtzvy b a lt gt b gt c c XA yAsz Prove each of the following first using logical equivalences then again using truth tables a a lt gt b gt c is logically equivalent to a A b A c v a A b b X A y v 2 v X v y A z is atautology c a gt b A a A b is a contradiction Translate quanti ed predicates to English and vice versa Examples include the first 4 questions from quiz 2 and the retake of quiz 2 Given the appropriate de nitions for variables and a universe of discourse determine the truth value of a statement that contains quantifiers X 3lollipops pies danishes y 3apple cherry grape bananna TXy X are available in y avor Assume that Lollipops are available in apple cherry grape and bananna avors Pies and danishes are available only in apple and cherry avors Which of the following statements are true a VX Vy TXy b VX Vy TXy c VX Vy TXy 3 1 EIX Ely TXy e EX Ely TXy f El X Ey TXy Ely EX TXy P QO Vy 3X TXy i Ely VX TXy 5 Given a set of premises construct a proof using the rules of inference See quiz 2 and quiz 2 retake for other examples a Premise a b v a Premise b gt c Premise e lt gt c Prove that a gt e Let A 0 3 5 9 and Bl l 3 6 911 6 a What is A UB b What is A n B c Is A 7 B D BA d IngBnA 7 What is the power set of A 8 WhatisAgtlt B WhatisB gtlt Agtlt B 9 What is lAl What is the cardinality ofthe power set of B 10 Draw a Venn diagram that includes A B and A X B Let fX x2 3 Let gX x 71 11 What is gA What is fB 12 Is fX injective surjective andor bijective What about gX 13 Let h f0 g What is hA 14 What is l f05 What is mom 15 Write pseudocode to nd the nexttosmallest integer in a nonordered length N list of integers 16 Given the pseudocode below write a function that calculates the number of times line 3 would execute lforilto Nl 2 forjltoN5 3 aiail


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Anthony Lee UC Santa Barbara

"I bought an awesome study guide, which helped me get an A in my Math 34B class this quarter!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.