The major operations we do are insertion,deletion and searching in any kind of data structure,which can also be done using database queries then what is the use of data structure?
which makes data structure unique from database?
Data structure shows how the objects in the problem is modeled and organized. For example,
The problem which data structure solves is how to model the objects in real world logically so that we can solve the problem in a computational manner.
Database is about how the information is persisted. The data in data structure may be persisted into database if necessary and may not be.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With