Recently, cars have been given the option of remembering certain functions such as the
movement they have made over a specific time or distance. The instructions need to be
correlated and no instruction can be processed before the other. Based on what you have
learned, which two data structures can be used together? Why not use another to implement this
scenario in your application? Explain how they work individually and combined
Linear Datastructures must be used (stack and queues), as they have a lot of similar operations when it comes to the above scenario, here the data of cars can be stored in the form of linked list, stack or queue, but not in the form of array, because it becomes difficult to perform operations on array.
Classes can be used in order to avoid the execution of instructions before the other. There are different apporaches which can be used in classes as per the convenience. However, Linear Data structures and classes can therefore be used together.
Comments
Leave a comment