Docsity

Data Representation and Computer Problem Solving, Exams of Advanced Education

Partial preview of the text

Download Data Representation and Computer Problem Solving and more Exams Advanced Education in PDF only on Docsity!

ITM 207 โ€“ Computer-Enabled Problem Solving MIDTERM EXAM study guide solution new update

Data and computers - are multimedia devices, dealing with a vast array of info categories store, present, and help us modify

  • Numbers Texts Video/audio All stored as binary digits (Bits) Data compression - Reduction in the amount of space needed to store a piece of data or the bandwidth to transmit it Compression ratio - Size of compressed data divided by size of original data lossless - data can be retrieved without any loss of the original information Lossy Compression - some information is lost permanently in the process analog data - A continuous representation of data, analogues to actual info it represents digital data - A discrete representation, breaking the information up into separate elements Binary representation of data - a type of data that is represented or displayed in the binary numeral system; the only category of data that can be directly understood and executed by a computer; numerically represented by a combination of zeros and ones

as=% Run Length Encoding - replacing a long series of a repeated character with a count of the repetition use flag, repeated value, number of repetitions Huffman encoding - Using a variable-length binary string to represent a character so that frequently used characters have short codes Representing Audio Information - Some data lost, reasonable sound reproduced (peak is usually lost)

  • Read by low intensity laser -Receptor converts reflections into binary digits -Bit strings represent audio signal pits - reflected poorly lands - reflected well Representing images and graphics - Color is expressed as RGB (red, green, blue) value- three numbers indicating relative contribution of each primary colours

RGB value of (255, 255, 0) maximizes contribution of red and green, and minimizes blue, which results in bright yellow Colour depth: amount of data used to represent colour Hi color - 16 bit colour depth: 5 bits used for each number in an RGB value with the extra bit sometimes used to represent transparency TrueColor - A 24-bit color depth: eight bits used for each number in an RGB value pixels - dots of colour that make up a image resolution - number of pixels in image raster graphics - Treat image as collection of pixels Common formats: BMP, GIF, PNG, AND JPEG Vector Graphics - treat image as collection of geometric objects Most important formats: Flash and SVG gate - : device that performs basic operations on electrical signals Circuits - gates combined to perform more complicated tasks

Made of a semiconductor material Combinational Circuit - Gates combined into circuits by using output of one gate as input for another Sequential circuit - output is function of the input values and the existing state of the circuit Circuit equivalence: - two circuits produce same output for identical input adders - Digital logic level, addition is performed in binary Addition operations are carried out by special circuits called appropriately adders results of two __ can produce carry value Half Adder - A circuit that computes the sum of two bits and produces the appropriate carry bit Full Adder - A circuit that takes the carry-in value into account Multiplexers (mux) - Circuit that uses few input controls signals to determine which of several input data signals is routed to its output signal Control lines S0, S1, S2 determine which of eight other input lines (D0..D7) are routed to the output (F) integrated circuit - Piece of silicon on which multiple gates have been embedded

Silicon pieces are mounted on plastic or ceramic package with pines on edges that can be soldered on circuit boards or inserted into appropriate sockets CPU (Central Processing Unit) - _____ have a large number of pines through essentially all communications in a computer system occurs SR Latch - 7 ways ______ can be designed using various kinds of gates guarantees two outputs are complements of each other value x is controlling state how do you solve problems - Understand the problem Devise a plan Carry out plan Look back Computer Problem Solving - Analysis and specification phase algorithm development phase implementation phase maintenance phase

Procedure call statement - Executes instructions in the call procedure, and then resumes executing your next statement Know 2 things correctly