Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

What is sll in data structure?

3 Answer(s) Available
Answer # 1 #

The elements of a linked list are not stored in continuous blocks of memory but in a linear structure, which is better for understanding.

The elements are referred to through pointers when linked lists are stored in different sectors of memory.

The following links will help deepen the aspect.

I hope I didn't bore you, I think that was a lot of information. The following examples will be implemented in the language of your choice, you can port this example to your language of choice.

We will create a class that will reference the elements in the linked list.

[4]
Edit
Query
Report
Gurfateh Harish
ASSEMBLER SMALL PRODUCTS II
Answer # 2 #

Sometimes it is better to use a data structure or another structure that allows us more speed, if we want to execute a certain type of algorithm.

It's interesting to know something more than just the array or the map.

They have an index that allows you to access a specific position and the value that it holds.

Even if they are not ordered, they can be removed from the data in an orderly way.

This allows for great speed, for example, when implementing a priority queue where we want each element that we insert, if we suddenly insert many elements with a priority, the first to be taken is the one with more or less priority, it depends on the type of mound.

They can be used to implement the undo process, like when we write in a text editor and press the CTRL+Z key.

Blocks 1 and 2 are equivalent to writing something, as we see in the image. Blocks 2 and 3 are the equivalent of deletion a letter.

The last action that would be taken would be the one that deleted the letter and put it back, and that would have a function that would do certain operations.

[3]
Edit
Query
Report
Adepero below
Physician
Answer # 3 #

A data structure is a collection of different shapes and different types of data that can be used to perform specific operations. It is a collection of data types.

It is a way to organize the items in a way that they can be accessed through a defined logic. Data structures include stacks, queue, linked lists, and many more.

Data structures only perform special operations.

You need to store data for many employees where they have their name, ID, and phone number. This data type requires complex data management and a data structure made of multiple primitive data types.

Data structures are one of the most important aspects when implementing coding concepts in real-world applications.

A data structure is a way of organizing a set of elementary data in order to facilitate the manipulation of these data as a whole and/or individually. A data structure defines the organization and the operations that can be done on it. The operations are basic

The simplest data structure is a one-dimensional linear array, in which the stored elements are numbered with consecutive integers and the contents are referenced by these numbers. Data stored in non-consecutive memory locations can be linked by pointers to indicate where the next element in the structure is located.

[1]
Edit
Query
Report
Wan Housley
Software Developer

Related Questions

No More Questions available at this moment!