



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Algorithm - Answers - ordered set of unambiguous, executable steps that defines a terminating process Primitive - Answers - well-defined set of building blocks from which algorithm representations can be constructed programming language - Answers - a collection of primitives along with a collection of rules stating how primitives can be combined to represent more complex ideas Pseudocode - Answers - a notational system in which ideas can be expressed informally during the algorithm development process stepwise refinement - Answers - The process of breaking a problem down into progressively smaller pieces. top-down methodology - Answers - Progresses from general to specific bottom-up methodology - Answers - progresses from specific to general types of step-wise refinement - Answers - top-down and bottom-up iterative structures - Answers - collection of instructions is repeated in a looping manner sequential search algorithm - Answers - An algorithm that searches for a target value in a list by checking each list item in turn (sequential order) Example of a Loop in pseudocode - Answers - while statement Loop or iteration statements - Answers - a programming construct that repeats a group of commands. termination condition - Answers - the condition that causes a loop to be exited Loop control consists of what three activities? - Answers - initialize, test, and modify initialize (repetitive control) - Answers - establish an initial state that will be modified toward the termination condition test (repetitive control) - Answers - compare the current state to the termination condition and terminate the repetition if equal
modify (repetitive control) - Answers - change the state in such a way that it moves toward the termination condition pretest loop - Answers - loop that test for termination is performed before body is executed posttest loop - Answers - loop that test for termination is performed after the body is executed for-each loop - Answers - A looping construct primarily used for iterating when performing same steps on each element in a list types of iterative structures - Answers - sequential search alg., loop control, insertion sort alg. Insertion Sort Algorithm - Answers - algorithm used to sort a list, will repeatedly remove an entry and insert it into the proper place Selection sort algorithm - Answers - an algorithm for sorting a collection of values that repeatedly finds the largest values in the unsorted section of the list and moves them into the correct position Bubble Sort Algorithm - Answers - A sorting algorithm that makes multiple passes through the list from front to back, each time exchanging pairs of entries that are out of order Binary Search Algorithm - Answers - An algorithm that searches for a target value in a sorted list by checking at the midpoint and then repeatedly cutting the search section in half. Recursion - Answers - search executes each stage of the repetiting as a sub-task of the previous stage Recursive Control requires what three things? - Answers - initialization, modification, and test termination base case or degenerative case - Answers - termination condition for recursive functions Algorithm Analysis - Answers - A general process that determines the amount of resources (such as time and storage) necessary to execute any particular algorithm Transistor - Answers - a solid-state device with not mechanical or moving parts constructed from layers of semiconductors
Unary operators use how many operands? - Answers - requires only one Gates - Answers - electronic device that operates on a collection of binary inputs producing a binary output (single output value) How many transistors required for NOT gate? - Answers - one How many transistors needed to construct an AND gate? - Answers - two transistors in a series (with the collector line of transistor 1 connected to power supply and the emitter line of transistor 2 connected to ground.) How many transistors for OR gate? - Answers - two transistors connected in parallel NAND Operator - Answers - Inverse of both values compared to be true, is equal to !A OR !B (produces complement of AND operation ) circuit - Answers - collection of logic gates that transforms a set of binary inputs into a set of binary outputs Every Boolean expression can be represented pictorially as a circuit diagram, and every output value in a circuit diagram can be written as a Boolean expression. - Answers - True How many steps to construct circuit from Boolean expression? - Answers - Four What is the first step to create a circuit from a Boolean expression? - Answers - 1. create truth table (all possible outputs form all inputs What is the second step to create a circuit from a Boolean expression? - Answers - 2. write sub-expression using AND and NOT gates What is the third step to create a circuit from a Boolean expression? - Answers - Combine sub-expression using OR gates (two at a time) What is the fourth step to create a circuit from a Boolean expression? - Answers - construct the final circuit diagram Compare for Equality Circuit - Answers - Tests two unsigned binary numbers for exact equality (if same true 1 if not false 0) Full Adder - Answers - A circuit that computes the sum of two bits, taking an input carry bit into account Half Adder - Answers - A circuit that computes the sum of two bits and produces the appropriate carry bit
flip-flop - Answers - a circuit that has two states, ON or OFF, that can be used to store a 1 or a 0. Remains so until another circuit sends pulse and shifts its value. It is the fundamental unit of computer memory. cells - Answers - a compute's main memory is organized in manageable units, typically 8 bits in size byte - Answers - A group of eight bits. high-order end - Answers - Left end of a row of bits within a memory cell low-order end - Answers - Right end of a row of bits within a memory cell most significant bit - Answers - left most bit lest significant bit - Answers - rightmost bit address - Answers - a unique identifier for a memory cell RAM - Answers - Random Access Memory DRAM - Answers - dynamic random access memory Kilobyte (KB) - Answers - 1024 bytes mass storage - Answers - secondary storage such as CDs, DVDs, magnetic tapes, flash drives, and solid-state disks zoned-bit recording - Answers - A means of increasing the storage capacity of a magnetic disk system seek time - Answers - The time it takes for a read/write head to move to a specific data track; one of the delays associated with reading or writing data on a computer disk drive. rotation delay or latency time - Answers - half the time required for the disk to make a complete rotation, which is the average amount of time required for the desired data to rotate around the read/write head once the head has been positioned over the desired track access time - Answers - the sum of seek time and rotation delay transfer rate - Answers - The rate at which data can be transferred to or from the disk to memory