Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 89059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:39:26+00:00 2026-05-10T22:39:26+00:00

Comparing LinkedLists and Arrays while also comparing their differences with sorted and unsorted data

  • 0

Comparing LinkedLists and Arrays while also comparing their differences with sorted and unsorted data

  • Adding
  • Removing
  • Retrieving
  • Sorting
  • Overall speed
  • Overall memory usage

Actual questions

Discuss the feasibility of implementing an unsorted data set as a linked list rather than an array. What would the tradeoffs be in terms of insertion, removal, retrieval, computer memory, and speed of the application?

Discuss the feasibility of implementing a sorted data set as a linked list rather than an array. What would the tradeoffs be in terms of insertion, removal, retrieval, computer memory, and speed of the application?

Based on your answers to the previous questions, summarize the costs and benefits of using linked lists in an application.

My answers/input:

LinkedLists have to allocate memory everytime a new Node is added, useful when adding many Nodes and size keeps changing but generally slower when adding few elements

Arrays allocated memory at the beggining of the program run, resizing list slow (adding many elements slow if have to resize)

Retrieval is faster in array due to indexing

Adding/removing faster in LinkedList due to pointers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:39:26+00:00Added an answer on May 10, 2026 at 10:39 pm

    On unsorted vs. sorted. I’ll do one, then you really do need to do your homework

    Stackoverflow markup really needs tables to do this one. You want to say how ‘expensive’ the operation is for the unsorted/array, sorted/array, unsorted/linked-list, sorted/linked-list

    One final point: ‘speed of the application’ is a hint to consider more than just the speed of the individual operations.

    * Adding 

    Unsorted: Array adding is O(1) unless resizing needed – just add it to the end. You might want to discuss a resizing strategy that minimises the overhead (hint: don’t just increase the size by one)

    Sorted: Array adding is O(n) – finding the place to add it is O(log(n)), but you need to move half the elements up (on average) to make romm for the new one

    Unsorted: Linked list is O(1) – add it to the start or end of the list.

    Sorted: Linked list is O(n) – although you can again add the element in O(1), you need to scan through half the list on average to find the place to put it.

    So, over to you for the rest. Post an answer, and we’ll critique it, but to get the most from your (presumably) expensive educatiom, you really need to do some work on this 🙂

    * Removing * Retrieving * Sorting * Overall speed * Overall memory usage 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 199k
  • Answers 200k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer try unbinding the click event on #add and #remove before… May 12, 2026 at 7:52 pm
  • Editorial Team
    Editorial Team added an answer You can use xul-overlays: 1) Declare the overlay at the… May 12, 2026 at 7:52 pm
  • Editorial Team
    Editorial Team added an answer All startup scripts of this kind should at least be… May 12, 2026 at 7:52 pm

Related Questions

Comparing string in C# is pretty simple. In fact there are several ways to
When comparing an HTTP GET to an HTTP POST, what are the differences from
When comparing two strings in c# for equality, what is the difference between InvariantCulture
When comparing enums that come from different sources such as those of the following

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.