Answers | Graded To Pass
Abstract Data Types - Answer- Computational problems
Data - Answer- info to state knowledge about world
components and properties of a type of data, relationships among these data
Operations - Answer- manipulate data to reason about world
Specification - Answer- ADT Stage
what are the data and operations
from the pov of the user
Representation - Answer- ADT Stage
how are the data stored
decided by someone implementing ADT
Implementation - Answer- ADT Stage
how are the operations performed
decided by someone implement ADT
Fields, Methods - Answer- OOP languages implement adt naturally
Set of Data - Answer- static, dynamic
static - Answer- change infrequently, fixed
dynamic - Answer- items are added or removed over time
Data Relationship, Operation on data, Static or Dynamic - Answer- factors for modelling
set of data
Data Structures - Answer- Representation that show relationship among data in
computer environment
Primitive data structure - Answer- Bit boolean
Bit string/byte/int/char
Composite data structure - Answer- Ordered tuple
Arrays, structs, classes/objects
String of char/ floating point number
, Algorithms - Answer- well-defined procedure that processes input values to generate
desired output values to solve a problem
implement operations using data structure
Abu Ja'Far - Answer- wrote procedure to perform math operations
Al-Khwarizmi - Answer- algorithms
Aspect of Good Algorithm - Answer- input
output
definite
finite
correct
effective
general
efficient
3 ways of implementation - Answer- natural language
programming language
pseudocode
Program - Answer- data structure + algorithms
functions - Answer- with return value
subroutines - Answer- no return value, has side effects
toString - Answer- returns conversion of sequence to string
isFull - Answer- return true if the sequence is full
append - Answer- subroutine, add a character at the end of sequence, unless it is full
iteration - Answer- execution of loops body
iterating block of statements (looping once)
recursion - Answer- solves problems in terms of smaller part or instances
though procedure - functions /subroutines
procedure calling itself / cycle of procedure calls
elements of recursion - Answer- basis, recursive step
basis - Answer- direct solution to smallest part