What is harder creating the data structure you thought of or writing the rules that support it? Give a detailed example.
Writing the rules could be difficult that actually creating the data structure. This is because data structure can be easily created once the rules are set.
For example, if one has to create a library of organized books, there needs to be rules set in place on how many books are there, the way they are structured, that is whether using the name of a book or name of author, etc. and the way a specific book can be found.
One needs to know how a specific data structure works and then use it. The rules define how searching, sorting, deletion, insertion, etc. will occur in the database. It can be a lot easier to create a database when the rules are set.
Get Answers For Free
Most questions answered within 1 hours.