- ADT Interfaces:
- Opaque view of a data structure (eg.
typedef struct t *T
, we don't knowstruct t
) - Function signatures for all operations
- Semantics of operations (via documentation, etc)
- A contract between ADT and clients
- Opaque view of a data structure (eg.
- ADT implementations
- Concrete defintion of the data structures
- Function implementations for all operations
These solutions have been extracted from the 2016s2 maple lab practice test. These notes are in no way affiliated with UNSW's School of Mathematics nor UNSW's MathSoc. I highly recommend you try doing the practice questions yourself and use these notes if your really stuck. Maple 18 was used to generate the solutions.
with(LinearAlgebra): # Include the LinearAlgebra package, if not already loaded.
A := <<6534, 37886, 17462, -3738, 4430> | <32490, -26590, -49930, 21570, 51050> | <21912, -6552, -10284, -84984, -72360> | <-14745, -25505, -21035, 6315, 14575> | <26985, 26065, -20645, 16605, 24025>>;
In order to clarify the intellectual property license granted with Contributions from any person or entity, Flagbase ("Flagbase") must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license does not change your rights to use your own Contributions for any other purpose.
You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Flagbase. Except for the license granted herein to Flagbase and recipients of software distributed by Flagbase, You reserve all right, title, and interest in and to Your Contributions.
- Definitions. "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Flagbase. For legal entities, the entity making a Contribution and all other entities that control, are controlled by, or are under common control with that entity are considered to be a single Contri