|
Representing data through this method uses a hierarchical form that explains the data and the data emerging from it, and so on. See the following image for further clarification: Structuring data in a tree system D) Structure the data in a horizontal manner This method of structuring data is called stacking. This method relies on arranging data horizontally, in which the data is arranged in the form of elements, one on top of the other.
Push, whose role is to add elements to the data structure, while the second Telegram Number Data process is Pop, whose role is to remove the elements it has displayed to make room for displaying new elements. This method of structuring data displays data in a last-in, first-out manner, known to graduates of commerce and business schools as last in first out, or LIFO. Imagine a group of panels stacked on top of each other... The last panel that you place on top of the rest of the panel is the first panel you take out for display. This means that the last data added to the data structure is the first data to be displayed. (See the following image for further clarification): Structuring data in a horizontal manner.

Structure the data in a queuing manner A queue is a system that structures data in a linear, sequential manner similar to the previous stacking method. However, this method differs in that the data is displayed in a first-in, first-out (FIFO) manner. This method works in the same way as the common traditional queue that we use to enter places. Applying this method to data is as follows: the data that is first added to the data structure is the first data that is taken out of it. See the following image for further clarification: Structuring data in a queuing manner As you noticed, enqueue means in line or waiting, while dequeue means out of line or in line. f) Structure data in a graph style Data is structured through this method and displays it in a geometric form consisting of vertices and edges.
|
|