이 시리즈의 모든 자료와 내용의 출처는 2021-2 고려대학교 COSE213 정원기 교수님의 자료구조 수업임을 밝힙니다.
총 5단계로 구성
: Requirements - Analysis - Design - Refinement & Coding - Verification
Data type : Collection of objects and a set of operations
ex) int
Objects : 0, 1, -1, 2, -2, ... , MININT, MAXINT
Operations : +, -, *, /, ...
Abstract Data Type
: A data type that the specification of objects and operations is separated from the representation and implementation
(구체적 구현 방법을 포함하지 않는 추상적인 데이터 타입)
Example of ADT
ADT NaturalNumber
Objects : an ordered range of the integers from 0 to MAXINT
Functions :
+, -, <, ==, = ...
Zero():NaturalNumber
IsZero(x):Boolean
Add(x, y):NaturalNumber
Equal(x, y):NaturalNumber
Successor(x):NaturalNumber
Subtract(x, y):NaturalNumber