Question

If linked lists are so much better than arrays, why do you think arrays are used...

If linked lists are so much better than arrays, why do you think arrays are used at all?

Briefly explain your thought in 1 paragraph.

Homework Answers

Answer #1

The main advantage of the array over the linked list is the random access of values. In arrays, you can find any element you want instantly using its index value which is not possible in the linked list. In the linked list every time you want to access a value you have to start from the first element(head node) and keep on search on a sequential pattern until you get the value. So the linked list is not suitable data structure where accessing values are quite frequent.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Do you think that white collar crime defendants will uniformly get a much better defense than...
Do you think that white collar crime defendants will uniformly get a much better defense than conventional crime defendants? Why or why not? Does hiring private counsel for white collar criminals guarantee a significant advantage? Explain
Selecting an Implementation We have studied arrays, vectors, and linked lists. Say which you would use...
Selecting an Implementation We have studied arrays, vectors, and linked lists. Say which you would use to implement each situation below. Defend every answer by saying why the answer you chose is better than the other two possibilities. A list of participants at a large public hearing. As each person arrives, their name is entered into the system, where it is appended to the end of the list. Thermometer readings at a weather station. The temperature is recorded every 5...
PLEASE USE IDLE PYTHON: Question (Arrays/Lists) A teacher uses 2   arrays (or Lists) to keep track...
PLEASE USE IDLE PYTHON: Question (Arrays/Lists) A teacher uses 2   arrays (or Lists) to keep track of his students. One is used to store student names and the other stores his grade (0-100). Write a program to create these two arrays (or lists) that are originally empty, and do the following using a menu: 1. Add a new student and his/her grade. 2. Print the name and grade of all current students, one student per line. 3. Display the number...
Do you think it is important to be sexually monogamous? If so, why or why not?...
Do you think it is important to be sexually monogamous? If so, why or why not? (In your opinion) (About how 36% of homosexual men thought that it was important to be sexually monogamous, while 71% of lesbians, 84% of heterosexual wives, and 75% of husbands. Why do you think there is a big difference between the attitudes about monogamous? )
state why you think Japanese crime is so much lower than the U.S.
state why you think Japanese crime is so much lower than the U.S.
Why is there so much change in HCOs? How do you think change in HCOs is...
Why is there so much change in HCOs? How do you think change in HCOs is similar to or different from change in other kinds of organizations and businesses? Think about a change made by your college or workplace that you resisted. Why did you resist the change? Could the organization have done anything differently to reduce resistance?
Why do you think that companies are doing better financially with women on corporate boards than...
Why do you think that companies are doing better financially with women on corporate boards than without? ?Two paragraphs ( 500 Words)
Why do you think editing and proofreading is so much more important in business writing?
Why do you think editing and proofreading is so much more important in business writing?
Why do you think debt offerings are more common than equity offerings and typically much larger...
Why do you think debt offerings are more common than equity offerings and typically much larger as well? WITH references so I may read about it! please
Why do you think we still experience so much discrimination in the workplace even though the...
Why do you think we still experience so much discrimination in the workplace even though the major EEO laws have been in existence for decades?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT