...science. A proposition is a statement that is either true or false, but not both. Letters are used to denote propositions, just as letters are used to denote variables. The conventional letters used for this purpose are p, q, r, s, … The truth value of a proposition is true, denoted by T, if it is a true proposition and false, denoted by F, if it is a false proposition. We now turn our attention to methods for producing new propositions from those that we already have. Many mathematical statements are constructed by combining one or more propositions. New propositions, called compound propositions, are formed from existing propositions using logical operators. Let p be a proposition. The statement “It is not the case that p” is another proposition, called the negation of p. The negation of p is denoted by p. The proposition p is read “not p”. A truth table displays the relationships between the truth values of propositions. Table 1. The truth table for the negation of a proposition | P | p | TF | FT | The negation of a proposition can also be considered the result of the operation of the negation operator on a proposition. The negation operator constructs a new proposition from a single existing proposition. We will now introduce the logical operators that are used to form new propositions from two or more existing...
Words: 1725 - Pages: 7
...In logic, a logical connective (also called a logical operator) is a symbol or word used to connect two or more sentences (of either a formal or a natural language) in a grammatically valid way, such that the sense of the compound sentence produced depends only on the original sentences. The most common logical connectives are binary connectives (also called dyadic connectives) which join two sentences which can be thought of as the function's operands. Also commonly, negation is considered to be a unary connective. Logical connectives along with quantifiers are the two main types of logical constants used in formal systems such as propositional logic and predicate logic. Semantics of a logical connective is often, but not always, presented as a truth function. A logical connective is similar to but not equivalent to a conditional operator. [1] Contents [hide] 1 In language 1.1 Natural language 1.2 Formal languages 2 Common logical connectives 2.1 List of common logical connectives 2.2 History of notations 2.3 Redundancy 3 Properties 4 Order of precedence 5 Computer science 6 See also 7 Notes 8 References 9 Further reading 10 External links In language[edit] Natural language[edit] In the grammar of natural languages two sentences may be joined by a grammatical conjunction to form a grammatically compound sentence. Some but not all such grammatical conjunctions are truth functions. For example, consider the following sentences: A: Jack went up...
Words: 2282 - Pages: 10
...MAT 1348B Discrete Mathematics for Computer Science Winter 2011 Professor: Alex Hoffnung Dept. of Mathematics & Statistics, 585 King Edward (204B) email: hoffnung@uottawa.ca Important: Please include MAT1348 in the subject line of every email you send me. Otherwise your email may be deleted unread. Please do not use Virtual Campus to send me messages as I may not check them regularly. Course Webpages: This web page will contain detailed and up-to-date information on the course, including a detailed course outline and course policies, homework assignments, handouts to download etc. You are responsible for this information. Consult this page regularly. Timetable: Lectures: Mon. 2:30–4:00 pm, Thurs: 4:00–5:30 pm in STE B0138 Office hours: Mon. 4:00–5:00 pm, Thurs: 3:00 - 4:00 pm DGD: Wed. 10–11:30 am. Textbook: K. H. Rosen, Discrete Mathematics and Its Applications, 6th Edition, McGrawHill. We’ll be covering most of Chapters 1, 2, and 9, and parts of Chapters 4, 5, and 8. The course may contain a small of amount of material not covered by the textbook. This text has been used in Discrete Math courses at Ottawa U. for many years, so secondhand copies can easily be found. Copies of the book are at the bookstore or available from Amazon. Coursework Evaluation: The final grade will be calculated as follows: • 5 homework assignments : 10% • Midterm exam: 30% • Final exam: 60% The midterm test is on February 17 . 1 Note that students must pass the final exam...
Words: 6265 - Pages: 26
...sciences including computer science. Logic is the basis of all reasoning. Computer programs are similar to logical proofs. Just as positive whole numbers are the fundamental units for arithmetic, propsitions are the fundamental units of logic. Proposition: A statement that is either true or false. E.g. Today is Monday Today is Tuesday The square root of 4 is 2 The square root of 4 is 1 2 is even, and the square of two is even, and 3 is odd and the square of 3 is odd. The Panthers can clinch a playoff berth with a win, plus a loss by the Rams, a loss or tie by the Saints and Bears, a win by the Seahawks and a tie between the Redskins and Cowboys. (Copied verbatim from the sports page 12/26/2004.) Propositions may be true or false and no preference is given one way or the other. This is sometimes difficult to grasp as we have a “natural” preference for true statements. But “snow is chartreuse” and “snow is white” are both propositions of equal standing though one is true and the other false. Non-propositions: What is today? Is today Monday? Questions are not propositions. You can’t judge whether the question itself is true or false, even though the answer to the question may be true or false. Show me some ID! Similarly, imperative statements lack a truth value. 2x=4 x=y Statements with undetermined variables do not have truth value xy=yx looks like a true proposition but is it multiplication or concatenation? If you...
Words: 2247 - Pages: 9
...LOGIC GATES In electronics, a logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a logical operation on one or more logical inputs, and produces a single logical output. Depending on the context, the term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan-out, or it may refer to a non-ideal physical device[1] (see Ideal and real op-amps for comparison). Logic gates are primarily implemented using diodes or transistors acting as electronic switches, but can also be constructed using electromagnetic relays (relay logic), fluidic logic, pneumatic logic, optics, molecules, or even mechanical elements. With amplification, logic gates can be cascaded in the same way that Boolean functions can be composed, allowing the construction of a physical model of all of Boolean logic, and therefore, all of the algorithms and mathematics that can be described with Boolean logic. Logic circuits include such devices as multiplexers, registers, arithmetic logic units (ALUs), and computer memory, all the way up through complete microprocessors, which may contain more than 100 million gates. In practice, the gates are made from field-effect transistors (FETs), particularly MOSFETs (metal–oxide–semiconductor field-effect transistors). Compound logic gates AND-OR-Invert (AOI) and OR-AND-Invert (OAI) are often employed in circuit design because their construction using MOSFETs is simpler and more efficient than...
Words: 2523 - Pages: 11
...Computer Science Chapter 1: Introduction to Computer Hardware Different Categories of Computer and Computing Devices Tablets The lightest and most portable Touch interface, good for “light” work Laptops/Notebooks Larger display area; adds CD or DVD as well as physical keyboard They are portable; price for performance is not as good as desktop, choice of hardware is limited Specialized Variant Laptops Ultrabooks Thinner, and lighter than laptops Cost is higher than laptop (all hardware being equal) Netbooks Cheaper more portable laptop that is smaller and has a lower quality display and overall less powerful hardware Much less common than tablets today Desktop Computers Everything is separate (monitor, computer, keyboard, etc); this allows you to mix and match and customize your desktop computer, at the cost of increased complexity (some compatibility issues may arise – not everything works together) and decreased portability. Larger ‘footprint’ (More space is required, but this allows for increase expandability) ------------------------------------------------- Reduced costs/more options (compared to laptops) ------------------------------------------------- The purpose of an operating system is to run the computer. The operating system determines the interface of a computer, its configurability, and its security. In general, due to popularity and tweak-ability, the MS-WINDOWS (PC) OS has more viruses than the MAC OS. In general, the MAC OS...
Words: 3669 - Pages: 15
...main unit of any technology, which performs different arithmetic operations like as addition, subtraction and multiplication etc. and logical operations like AND, OR, invert, XOR etc. which is a dominant feature in the digital domain based applications. The arithmetic and logic unit (ALU) perform all the arithmetic operations (addition, subtraction, multiplication and division) and logic operations. Logic operations test various conditions encountered during processing and they allow different actions to be taken based on the results. The data required to perform the arithmetic and logical functions are the inputs from the designated CPU registers and operands. The ALU relies on basic items to perform its operations. The ALU is called as the heart of microprocessors, microcontrollers and CPUs because no technology can exist without those operations performed by ALU. 6.2 ARITHMETIC LOGIC UNIT An Arithmetic Logic Unit is a digital circuit that performs arithmetic and logical operations. The ALU is a fundamental building block of the central processing unit (CPU) of a computer and even the simplest microprocessors contain one for purposes such as maintaining timers. The processors were found inside modern CPUs and graphics 145 processing units (GPUs) that accommodate very powerful and very complex ALUs. A single component may contain a number of ALUs. Most of the processor's operations were performed by one or more ALUs. An ALU loads data from input...
Words: 2454 - Pages: 10
...as follows: 1. Review the input, processing, output and storage requirements 2. Develop the logic for the program 3. Write the program using a programming language 4. Test and debug the program 5. Complete the program documentation What is a Program? - A program is an organized lists of instructions that, when executed, causes the computer to behave in a predetermined manner. Without programs, computers are useless. What is Programming? - Programming is instructing a computer to do something for you with the help of a programming language Identifiers Manipulation of data is a basic feature of a computer’s abilities. This data must be present in the memory (RAM) of the computer for operations to be done on it. The computer accesses this data via memory addresses. Identifiers are required to keep track of these memory addresses (receptacles, data containers). Identifiers allow us humans to give these ‘data containers’ more meaningful names. This makes the task of manipulation of data more manageable....
Words: 834 - Pages: 4
... 1. Using the AND operator, what is the result of 1100 2 AND 1111 2 ? What can you conclude about using AND on any value with a string of 1s? 1100 When using AND on any value with a string of 1s, a 1 will be the result. Exercise 1.2.9 1. Using the OR operator, what is the result of 1100 2 OR 1111 2 ? What can you conclude about using OR on any value with a string of 1s? What value can you use with an OR operator to preserve the other input number in the logical equation? 1111 Lab 1.2 Review 1. Determine the result of 10010000 2 + 1101110 2 . Show the mapping that you created to solve this addition problem. 11111110 2. Determine the result of 11001100 2 AND 11111100 2 . Show the mapping or truth table that you used to solve this logic problem. 11001100 3. Determine the result of 11001100 2 OR 11111100 2 . Show the mapping or truth table that you used to solve this logic problem. 11111100 4. Using parentheses in binary works just like it does in decimal, where the operation inside the parentheses should be performed first. With this rule, determine the result of NOT( 11001100 2 AND 11111100 2 ). Show the steps,...
Words: 374 - Pages: 2
...Dashain Vacation Home Assignment-2069 Grade XI, Science Note: Home assignments of each subject should be done in different copies/papers. English 1. Write an essay on ‘Dashain and its significance in Hindu Religion’. 2. Prepare a report on ‘Global Warming, its consequences and solutions’. 3. Write an article on ‘Importance of Media’. 4. Write on ‘English for Global education’. Mathematics 1. Find the angle between the pair of straight lines x2 -2secAxy +y2= 0. 2. Evaluate: limx→∞ 3x2-2x+5x3 3. Prove that: A-B=B-A 4. Define lower triangular matrix with an example. 5. Find the equation of circle concentric with the circle x2+ y2 – 6x + 12y + 15 = 0 and having the area twice the area of the given circle. 6. For any two real numbers x and y, prove that |x+y| ≤ |x| + |y|. 7. What do you mean by tautology of compound statement? Give an example of it. 8. For any positive constant ‘a’ and for any real number ‘x’ , prove that |x| < a ⇒ -a < x < a. 10. Prove that the tangent to the circle x2+y2=5 at the point (1,-2) also touches the circle x2 + y2 - 8x + 6y + 20 = 0 and find the point of contact. 11. If P is the length of perpendicular dropped from the origin of the line xa + yb = 1 prove that 1a2 + 1b2 = 1 p2. 12. Find the equation of the circle with centre at (4, -1) and passing through the origin. 13. Evaluate; limx→osin(x-a)x-a 14. Define absolute value of a real number. Rewrite the following relation without using...
Words: 2766 - Pages: 12
...BUSN 420 Business Driven Technology Final Project Submit a 2,000-word written case analysis of one of the three cases from the textbook listed below. Each case covers different areas of this course so that you can spend your time on this assignment further researching the set of topics that most interest you and/or will be most beneficial in your future career. Be sure to address all the questions for your chosen case and demonstrate five or more theories or principles learned in this course as a part of your case analysis. Your paper must be written in APA format with a proper title page and reference list that cites at least 5 scholarly sources. Please do not simply record answers to the questions, rather synthesize your responses into a cohesive case study analysis. Please upload your final project paper to Blackboard through the Assignment Manager tool. The 2,000-word count does not include charts, graphs, title page or supporting appendices. I will be using the Final Project Rubric (see end of this assignment) to grade your case analysis. Please Note: There are few right or wrong answers in the business world. There are really only efficient and inefficient, and effective and ineffective business decisions. If there were always right answers businesses would never fail. These questions were created to challenge you to apply the materials you have learned to real business situations. For this reason, when grading your answers, I will be focusing on your justification or...
Words: 2791 - Pages: 12
...stored on a chip/ double storage capacity (NOT a LAW) 2. Moore’s Law: Generalized meanings – the speed of computers is set to double every two years 3. Central Processing Unit (CPU) and the three primary components thereof – the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logical, control & input/output (I/O) operations specified by the instructions. Runs programs. Three primary components are the: 1. Main Memory- (aka RAM/ physical storage) constructed from integrated circuits and needs to have electrical power in order to maintain its formation. When power is lost, so is the information. Made up electronic circuits > 2 state situation ON/OFF, High voltage/ low voltage, negatively charged/ positively charged. *PHYSICAL – reality *LOGICAL – a model; not the truth 2. Control Unit- extracts instructions from memory and decodes and executes them calling on the ALU when necessary 3. Arithmetic logic unit (ALU) - performs arithmetic and logical operations 4. Von Neumann Architecture – computer architecture consisting of the 3 CPU components. (1945 mathematician & physicist) 5. Execution Cycles/ Instruction Cycles – how the control unit works. Measures the speed of the control unit. A process by which the computer retrieves a program instruction from its main memory, determines what actions the instruction requires...
Words: 2665 - Pages: 11
...father(X,Y) ( mother(X,Y) ( parent(X,Y) (X(Y(Z parent(X,Y) ( parent(X,Z) ( brother(Y,Z) In this example we use the predicate mother and father to define a set of other relationships such as parent and brother. Predicate calculus semantics : provide a formal basis for determining the truth value of Well Formed Formula (WFF) . The truth of expressions depends on the mapping of constants, variables and functions into objects and relation in the domain of discourse. First order predicate Calculus : It is a language allows quantified variables to refer to objects in the domain of discourse and not to predicates or functions. Ex3 : if it doesn't rain tomorrow . Tom will go to the mountains. ~weather(rain, tomorrow) ( go (tom, mountains) Ex4 : All person play football are tall (X(Y (person(X) ^ play(X,Y) ^ football(Y) ( tall(X) Ex5 : some person like anchovies. (X (person(X) ^ like (X, anchovies)). Ex6 : No body likes taxes. ~ (X likes(X, taxes) or (X ~likes(X, taxes). Ex7 : Suppose we want to model the blocks world of figure below to design a control algorithm for a robot arm : on (c, a). on (b, d). on-table ( a ) on-table ( d ) clear ( b ) % nothing above b clear ( c ) % nothing above c hand-empty. % free hand A block world with it is predicate calculus description. - To pick up a block and stack it on another block, both blocks must be clear. In figure...
Words: 1164 - Pages: 5
...Session 2 The Intelligence Process Information is material of every description, including that derived from observations, surveillance, reports, rumors, and other sources. The information itself may be true or false, accurate or inaccurate, confirmed or unconfirmed, relevant or irrelevant. Although the intelligence process requires that information be stored, organized, and retrieved, the production of intelligence requires much more. Intelligence is the product resulting from the collection, evaluation and interpretation of information. Thus, intelligence can be viewed as information to which something has been added. The something added is the result of analysis—an explanation of what the information means. Intelligence may be general or specialized in nature. General intelligence focuses on a broad range of criminal activities, typically in smaller agencies or jurisdictions. Specialized intelligence focuses on a particular type of criminal activity or entity, such as narcotics, industrial espionage, or organized crime. Intelligence has both tactical and strategic applications. Tactical intelligence is directed towards a short term law enforcement objective or active case, with an immediate impact in mind—arrest, forfeiture, seizure. Strategic intelligence deals with larger, more long-term issues and goals, such as the identification of major criminal individuals or syndicates, projections of growth in types of criminal activity, and the establishment...
Words: 2395 - Pages: 10
...used by the likes of Pepsi, Kellogg’s and Kraft Foods-everywhere we witness the elegance, complexity and effectiveness possible only with the help of computers. These systems operate using the Von Neumann Architecture. The Von Neumann Architecture and Importance The von Neumann architecture is a design model for a stored-program digital computer that uses a processing unit and a single separate storage structure to hold both instructions and data. The instructions are executed sequentially which is a slow process. One shared memory for instructions and data with one data bus and one address bus between processor and memory. Commands and data have to be fetched in sequential order (known as the Von Neumann Bottleneck), limiting the operation bandwidth. Its design is simpler than that of the Harvard architecture. It is mostly used to interface to external memory. Neumann architecture computers are called control flow computers because instructions are executed sequentially as controlled by a program counter. To increase the speed, parallel processing of computers have been developed in which serial CPU’s are connected in parallel to solve a problem. Even in parallel computers, the rudimentary structure blocks are Neumann processors. It is named after mathematician and...
Words: 1237 - Pages: 5