Download Computer Science Glossary: Algorithms, Data Structures, and Programming Concepts and more Quizzes Management Information Systems in PDF only on Docsity!
Algorithm
ordered, unambiguous, executable steps which terminate TERM 2
Pseudocode
DEFINITION 2 notational system in which ideas can be expressed informally during the algorithm development process -can be converted into any programming language TERM 3
Assignment Statement
DEFINITION 3 name TERM 4
If-then-else Statement
DEFINITION 4 If...condition then...action TERM 5
While-do Loop
DEFINITION 5 -repeated execution while... condition do... activity (pretest loop)
Repeat-until Loop
repeat... activity until... condition (posttest loop) TERM 7
Selection Sort
DEFINITION 7
- compare 1st item with 2nd, if 2nd smaller swap, if not leave
- compare 1st and 3rd item, if 3rd smaller swap, if not leave - repeat until list is sorted - if the list is n items long, it will take n - 1 times to get the list sorted TERM 8
Recursion
DEFINITION 8
- a method of defining functions in which the function being defined is applied within its own definition - specifically it is defining an infinite statement using finite components. TERM 9
Bubble Sort
DEFINITION 9
- list of items in random order - compare 1st and 2nd items, if 1st smaller leave, if 2nd switch - compare 2nd and 3rd items, if 2nd smaller leave, if 3rd smaller switch - repeat until list is sorted - if list is n items long, it will take n - 1 times to sort the list TERM 10
Bucket Sort
DEFINITION 10
- aka radix sort - list of items in random order - # of buckets depends on numbers 10 or letters 26 - distribution pass: place each item into bucket based on right most digit/letter, place it on the bottom and build up - gathering pass: bottom falls out, reassemble items into new list based on how they would fall from the bucket repeat based on next digit/letter - longest number of digits = n, it will take n times to sort the list
Debugging
correcting errors in programs TERM 17
Identifiers
DEFINITION 17
- a unique expression written to distinguish variations from one to another among a class of substances, items, or objects. TERM 18
Machine Language
DEFINITION 18
- a system of instructions and data executed directly by a computer's central processing unit TERM 19
Assembler
DEFINITION 19 convert mnemonic expressions into machine language instructions TERM 20
Assembly Language
DEFINITION 20 collectively, a mnemonic system for representing programs
Translator
translates programs expressed in high level primatives into machine language programs TERM 22
Programs
DEFINITION 22 formal representation of an algorithm designed fro computer application TERM 23
Imperative Paradigm
DEFINITION 23
- aka procedural paradigm - represents the traditional approach to the programming process - it defines the programming process to be the development of a sequence of commands that, when followed, manipulate data to produce the desired result TERM 24
Declarative Paradigm
DEFINITION 24
- asks a programmer to describe the problem to be solved rather than an algorithm to be followed - it applies a pre- established general-purpose problem-solving algorithm to solve problems presented to it TERM 25
Functional Paradigm
DEFINITION 25 a program is constructed by connecting smaller predefined program units so that each units outputs are used as another units inputs in such a way that the desired overall input-to- output relationship is obtained
Data Structure
conceptual shape or arrangement of data TERM 32
Data Type
DEFINITION 32 encompasses both the manner in which the data item is encoded and the operations that can be performed on that data TERM 33
Integer
DEFINITION 33 numeric data consisting of whole numbers TERM 34
Float
DEFINITION 34
- aka real - numeric data that might contain data other than whole numbers TERM 35
Character
DEFINITION 35
- data consisting of symbols - probably stored using ASCII or unicode
Boolean
data items that can take on only the values true or false TERM 37
Arrays
DEFINITION 37
- systematic arrangement of objects, usually in rows and columns - block of data TERM 38
Control Statement
DEFINITION 38 an imperative statement that alters the execution sequence of the program TERM 39
Function
DEFINITION 39 a program unit similar to a procedure except that a value is transferred back to the calling program unit as "the value of the function" TERM 40
Object
DEFINITION 40 an instance of a class
Polymorphism
customized interpretation of a message TERM 47
Private
DEFINITION 47 Highly restricted TERM 48
Public
DEFINITION 48 less restricted