Data Abstractions: Computer Science: An Overview Eleventh Edition
Data Abstractions: Computer Science: An Overview Eleventh Edition
Data Abstractions
by
J. Glenn Brookshear
• Homogeneous array
• Heterogeneous array
• List
– Stack
– Queue
• Tree
• Homogeneous arrays
– Row-major order versus column major order
– Address polynomial
• Heterogeneous arrays
– Components can be stored one after the other in a contiguous
block
– Components can be stored in separate locations identified by
pointers
• Linked structure
– Each node = data cells + two child pointers
– Accessed via a pointer to root node
• Contiguous array structure
– A[1] = root node
– A[2],A[3] = children of A[1]
– A[4],A[5],A[6],A[7] = children of A[2] and A[3]