CIS 0822 Final

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/127

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

128 Terms

1
New cards

Lists

- Collection of data all stored as one value

- Most algorithms need to look through each item of a list

- To search

- To sort

2
New cards

Loops

Structure that allows you to repeat code multiple times

3
New cards

The two types of loops

For loop and while loop

4
New cards

For Loop

Used if you know how many times you are required to loop

5
New cards

While Loop

Used if you are unsure or cannot determine how many times you are required to loop

6
New cards

Linear Search

- O(n) operation

- Start with the first element and compare it with the search item

- If not found, move onto the next element

- If found return true, otherwise return false

- Variations on search

- Returns index of found item

- Return on all found items

- P vs Np

7
New cards

Flag Variable

Set to true or false

8
New cards

For an o(n) search problem where n=30, the worst case scenario would be for the search to take how many steps ?

30 steps

9
New cards

Binary Search

- o(log n) search

- Find the center of the data and compare it to the searched element

- If match, then found

- If no match

- If smaller than center element, eliminate elements to the right

- Else eliminate elements to the left

- Linear vs Binary (Binary is faster)

- Downsides of Binary Searches ?

- Has to be sorted because the data needs to be in order

10
New cards

Using a binary search, what is the worst case scenario if you search for an item in a list that has 20 items ?

5 steps

11
New cards

Sorting

- Process of arranging items in a systematic order

- In computer science, it generally means placing items in an increasing or decreasing order

- Sorted data can make other operations more efficient, such as searches

12
New cards

Issues with Sorting

- Can take a lot of time

- Takes a lot of space (memory)

13
New cards

Sorting Algorithms

- Many sorting algorithms in existence

- Each one typically has pros and cons (depends on the environment)

- Some slow, but memory efficient while other are fast, but need a lot of memory space

- Some good with large sets of data, but carry unnecessary overhead for small amounts of data

- Some work well with partially sorted data, but are terrible with unsorted data

- Others do not benefit from partially sorted data, but do not degrade when data is completely unsorted

14
New cards

Quicksort Algorithms

- First element (in the example video) in the list serves as a pivot

- Place elements smaller than pivot to the left and the rest to the right

- Starting with the left partition, use the first element and sort all elements and then do the same with the right partition

15
New cards

Selection Sort

n^2

- In place comparison sort

- Does not use lots of extra memory

- Has terrible worst case scenario, best case scenario, and average case

- Easy to implement, but inefficient

- Until all elements are sorted

- Move to the beginning of the unsorted segment and set marker

- Find smallest element in unsorted segment

- Swap with element at the beginning of the unsorted segment

- Move marker one spot to the right

- Even if it is already sorted, it will take the same amount of time because each comparison must be completed

- Look at notes for the selection sort example

16
New cards

Which of the following Big O notations would be unacceptable to use unless the number of items was extremely small ?

O(2^n)

17
New cards

Algorithms and Complexity

Algorithms are classified by the rate of growth of the resource utilization (time or memory) as the size of the data grows

18
New cards

Big "O" Classifications

O(1) - Constant

O(log n) - Logarithmic

O(n) - Linear (search)

All these are fine

O(n^2) - Quadratic

O(2^n) - Exponential (unacceptable) (the number has to be extremely small or else it gets crazy)

- Constant is the best because it means that it will always be the same amount of time however, the time that it takes to set up memory to do the search

- That setup process is going to take much longer

19
New cards

True or False: While the canvas component (found in the drawing and animation section) has many interesting features and capabilities, one major downside is that the canvas component only has 3 event handlers to choose from when programming it in the blocks view

False

20
New cards

Multimedia

- Content that includes more than one medium

- Text

- Images

- Audio

- Video

21
New cards

Importance of Multimedia

- Multimedia can make information compact and more impactful

- Infographics

- Visualization

- Can bring understanding when otherwise it might not be possible

- Multimedia can make content more accessible

- Overcoming disabilities

- Convenience/options (Audiobooks)

22
New cards

Differences between Infographics and Visualization

Infographics

- Can not interact with

- Time consuming to create infographics

- It is something that is planned out

- Easy to understand

- Tries to convey a message and point you in a certain direction

Visualization

- Can interact with

- Used when you have so much information

- Once the program is created, you can grab the information and the software will do rest of the work

- More complex

- Not planned out

23
New cards

Reasons why you would want to use multimedia in apps

Aesthetics, accessibility, and context

24
New cards

Multimedia Formats: How is media represented ?

- Data representation

- 1s and 0s

- Need a transition process

25
New cards

Multimedia Formats - Text

- Textual data is represented using standard encoding schemes

- ASCII is one of the earliest systems

- Each character is represented by a number

- 1 byte meant only enough for an American character set

26
New cards

Multimedia Formats - Text (Unicode)

- Unicode

- Includes ASCII

- Used by every machine in the world to display characters

- All languages and some non-languages (emojis and symbols)

27
New cards

Multimedia Formats - Digital Images

- Collection of pixels

- Pixel element

- Smallest part of an image that can be displayed/represented

- Each pixel is one color

- Pixels are tracked

- A pixel is one point of light

28
New cards

Multimedia Formats - Image Files

- Contain information about an image

- Meta information: size, color scheme, file type, and etc

- Color information about each pixel

- Binary vs Grayscale vs Color

- Binary is using only two colors, Grayscale is using colors from 0-255 and color is how much is RGB

- Look at notes for better explanation and examples

29
New cards

Multimedia Formats - Differences between each image file (include if they are lossy or lossless)

- Jpg is lossy

- Gif and png are lossless

Jpg

- Millions of colors, no animation, and no transparent background

Gif

- 256 colors, animation, and transparent backgrounds

Png

- 256 colors or million of colors, no animation, and transparent backgrounds

30
New cards

Lossless vs lossy

Lossless - a data compression technique in which there is no loss of information

Lossy - a data compression technique in which there is a loss of information

31
New cards

Why do we need compression ?

- Need compression because it makes your files smaller which makes it easier to transfer the files

- It will get to the destination faster and takes less space on the server

32
New cards

Multimedia Formats - Audio Files

- Analog to Digital

- Sampling

- ADC vs DAC

- Mp3, flac, aiff, and wav

33
New cards

Sampling

A process of capturing the value of a sound wave at regular intervals, typically thousands of times per second, to store sound and music digitally

34
New cards

Lossy vs Lossless in Audio Files

Lossy - mp3, mp4, and aac

Lossless - flac and alac

No compression - wav and aiff

35
New cards

Multimedia Formats - Video Files

- Video is a series of still images played back in rapid succession and synched audio

- FPS (the less fps makes the image blurry and more life like you are watching a movie) (having more frames per second makes it almost slow motion and you can see every single detail)

- Video codecs are used to "code"/"decode" the video to keep file sizes as small as possible while maintaining quality

36
New cards

Multimedia - Ethical Issues

- Always an issue, but center stage recently - why?

- Fake News is why it has been even more of an issue

37
New cards

Multimedia - Ethical Issues - Text

Scenario 1: Newspaper or Magazine - Should an editor be able to make changes to better communicate an idea ? Why or why not ?

- Most people would say yes because that is the editor's job

- The editor should not make change the whole article and them put someone's else name on it

38
New cards

Multimedia Ethical Issues - Digital Images

- Anything is possible

- Can do anything with photoshop (change and edit photos)

- Can be bad because people can change the color of someone's skin or edit the photo to make someone look bad

Example: The Dove Evolution Campaign

- They photoshopped the women before putting her face on the campaign

- Laws to identify image manipulation

- So final decision - when is it acceptable

- The only time it is acceptable is if it is for fun

- It is not acceptable when it is used to trick people

39
New cards

Multimedia Ethical Issues - Audio

- Lots of possibilities

- Low Tech - taking things out of context

- High Tech - voco, Google Duplex (software that can call and make appointments)

- For voco, they can type in what they want the software to say and then change the audio

40
New cards

Multimedia Ethical Issues - Video

- Anything is possible with the right tools

- Low Tech - deceptive editing

- Middle of the road - DeepFakes software

- High Tech - movie industry

41
New cards

Computing Platforms (the different types)

- Personal computer (desktop)

- Mobile computer/wearable devices (Laptop, tablets, smartphones, smartwatches, smart jewelry, and fitness trackers)

- Servers (a computer or system that provides resources, data, services, and programs to another computer - known as a client)

- Supercomputers (most powerful computers in the world and used to solve the most hardest problems)

42
New cards

Client - Server Relationship

You have one computer that is in the middle and you have all these clients (the other computers) pulling information from the central computer (server)

43
New cards

What are the 2 basic pieces that come together to make all computers ?

Hardware and Software

44
New cards

List of Servers

- Gaming server

- Mail server

- Web server

- Database server

- Communication server

- Application server

45
New cards

More Information related to supercomputers

Supercomputers are used to cure diseases, create the most powerful weapons, solve crimes, hack into other computer systems that are password protected, figure out how to save energy, and much more

46
New cards

Hardware

- Lots of parts inside your system

- CPU (central processing unit)

- RAM (random access memory)

- Adaptor Cards

- Motherboard

- Input and Output devices

- Storage devices

47
New cards

CPU

- The brain of the computer

- Handles all the data that is processing in your system

- The more powerful your CPU is, the more instructions your device can handle per second - which makes your device more efficient

48
New cards

RAM

- Temporary storage area for all your data that needs to be processed for any and all programs being used by the device

- The more RAM your device has, the more programs you can have running the problems and this gives you the ability to use programs that use large files

49
New cards

Adaptor Cards

- Video card, sound card, wifi card, and a card that gives you extra usb slots

- Use these cards and attach them to the motherboard to give you extra features on your computer

50
New cards

Motherboard

The motherboard is what you plug everything into

51
New cards

Input and Output Devices

Input Devices

- Gives you the ability to input data into your computer

- Keyboards, mouse, microphone, and scanner

Output Devices

- Used to communicate the information that was created by the computer

- Printer, monitor, speakers, projectors, and haptic output (vibrations)

52
New cards

Storage Devices

- Devices that are used to store data for long periods of time

- Hard drives, flash drives, CD drives, DVD drives, and the cloud

53
New cards

What are the most important hardware to consider when choosing a device ?

CPU and RAM

54
New cards

Hardware - Memory (main and second)

- Main memory (RAM)

- Where data/information is stored while being used by the processor

- Second Memory

- Storage (your storage devices)

- Look at notes for a diagram

55
New cards

4 Things that makes a computer a computer

- Must be able to input data

- Must be able to process data

- Must be able to store the data

- Must be able to output the data

The 4 things are

- Input

- Process

- Output

- Store

56
New cards

Hardware - Memory - Data Representation

- Data is represented by binary digits (bits)

- A bit is the smallest unit of information a digital device can manipulate (1 or 0)

- 1s and 0s, on and off, electrical charge or not

- 8 bits make a byte

- Bytes represent data in memory with each memory cell holding one byte of data

57
New cards

What does 1 and 0 represent ?

1 is on ad 0 is off (ONe = ON)

58
New cards

How many bits make a byte ?

8 bits

59
New cards

Kilo

1,000 (Thousand)

60
New cards

Mega

1,000,000 (Million)

61
New cards

Giga

1,000,000,000 (Billion)

62
New cards

Tera

1,000,000,000,000 (Trillion)

63
New cards

The order of the prefixes

Kilo, mega, giga, and tera

64
New cards

The difference between Kb and KB

- the small b is bit

- the big B is byte

65
New cards

Hardware - Memory - Bytes

- Bytes can represent any type of data as long as you have the software to translate them

- 01011010 could be:

- Shade of green

- 90

- z

- C# (music)

66
New cards

What is 00100100 in Decimal ?

36

67
New cards

What is 01100011 in Decimal ?

99

68
New cards

What is 90 in binary code ?

01011010

69
New cards

What is 101 in binary code ?

01100101

70
New cards

What is 201 in binary code ?

11001001

71
New cards

Name three output devices

Printer, monitor, speaker, and projector

72
New cards

Name four input devices

Keyboards, mouse, microphone, and scanner

73
New cards

What is 00011100 in decimal ?

28

74
New cards

What is 00000111 in decimal ?

7

75
New cards

What is 50 in binary code ?

00110010

76
New cards

What is 31 in binary code ?

00011111

77
New cards

ASCII vs Unicode

ASCII:

- is 7 bit

- This takes care of 0-9 A-Z, a-z and punctuation...

- One byte system

- Can not be used to represent everything

UNICODE:

- Includes ASCII

- Can go up to 4 bytes

- Displays all languages and some non languages

- Used by every machine in the world to display characters

78
New cards

Hardware - Memory (Volatile vs Non- volatile)

- Volatile vs Non- volatile

- RAM/main memory vs ROM/secondary storage

- RAM - temporary memory that stores bytes of data and program instructions for the CPU to access

- ROM - permanent storage for data and instructions that do not change (like firmware) and for instructions needed for tasks such as booting your computer

- ROM stores data, using circuits with states that are fixed. Therefore, the data represented by this combination is not lost when the power is removed

79
New cards

Volatile vs Non-volatile Memory

- Volatile - data is wiped clean when the power is lost to the computer

- Non- volatile - keeps the data in storage when power is lost to the computer

80
New cards

What is an example of volatile memory ?

RAM

81
New cards

What is an example of non-volatile memory ?

ROM

82
New cards

What is another name for RAM ?

Main Memory

83
New cards

What is another name for ROM ?

Secondary Storage

84
New cards

Hardware - Processing

- CPU - processor and brain of the computer

- Directs and coordinates operations in the computer

- Performs arithmetic, comparison, and logical operators

- Control Unit is the brain of the computer and controls all the operations in the computer

- The ALU handles anything math related

85
New cards

What is system software ?

Used to run the computer's hardware and applications

86
New cards

Two categories of system software (descriptions of each)

- OS (operating system)

- controls your computer's hardware and acts as a user interface

- Utility programs

- Used to maintain, protect, and improve your computer's device (security software or networking software)

87
New cards

What is the definition of software ?

The electronic instructions that govern a computer's actions to provide a computing service

88
New cards

What are the two categories of software ?

System software and application software

89
New cards

What are the two different types of system software ?

OS (operating system) and utility programs

90
New cards

Software - Operating systems (OS)

An operating system is a set of computer programs that controls the computer hardware, and acts as a user interface

91
New cards

Operating Systems List

- Controls computer hardware

- Manage RAM

- Manage processor

- Manage programs

- Monitors performance

- Control input/output devices

- Provide a user interface

- Provide networking functionality

92
New cards

Software - Programming

- Machine language - programming language understood by computers comprised of only 1s and 0s

- High level languages - languages used by programmers to simplify computer programming

- Contains easy to read syntax that is converted into a low level language readable by a CPU

- Converted using a complier

- Complier- takes the source code for HLL and converts it into a machine level module called an object file. A "translator" will check for syntax errors and report problems

- All languages fit into two categories: low level (machine language and assembly language) and high level (Java, C, and Python)

93
New cards

What is automation ?

Automation is a series of steps that are predetermined and are executed automatically with minimal human interaction

94
New cards

Birth of automation

- Printing Press

- Manufacturing

95
New cards

Where is automation being used in homes ?

- Video camera (automatically set so if there is movement, you get an alert)

- Lighting (you can have a system where when you walk in a room, the lights might turn on or dim at a certain time)

- Washing machine

- Sprinkler System (automatically set so your lawn is being watered at a certain time)

96
New cards

Where is automation being used in the work/industry environment ?

- Robots cooking hamburgers

- The machines shaping the pots

- The assembly line used for the production of cars

- Warehouses where they have robots pack groceries

97
New cards

Benefits and downsides to automation

Benefits

- Speed (faster)

- Quality/consistency (gives you the same result each time)

- Safety (save human lives)

- Lower costs (the machines don't take vacations or need health insurance)

- Higher production yields

Downsides

- Impact on labor (humans lost their jobs)

- The robots might get hacked

98
New cards

Impact on Labor (automation)

- Limited human interaction translates to limited dependence on human capital

- Fewer workers

- New Jobs (training ?)

- Robots and machines can not modify to tasks

- Humans are flexible (For example: at a gas station, a human can be the cashier and make sandwiches)

- Human can react to change

- Humans can take on additional tasks

99
New cards

Autonomous Systems (the definition)

- Can act pseudo independently

- System that is goal oriented

- Contains intelligence to react to environment

100
New cards

The tenets of autonomous systems

- Have a way to examine the environment -> Sensors

- Contains a logic system (AI) to determine the best action

- Contains actuators to take action

Explore top flashcards