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 6705847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:27:06+00:00 2026-05-26T07:27:06+00:00

Big O Notation Arrays vs. Linked List insertions: According to academic literature for arrays

  • 0

Big O Notation Arrays vs. Linked List insertions:

According to academic literature for arrays it is constant O(1) and for Linked Lists it is linear O(n).

An array only takes one multiplication and addition.

A linked list which is not laid out in contiguous memory requires traversal.

This question is, does O(1) and O(n) accurately describe indexing/search costs for arrays and linked lists respectively?

  • 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. Editorial Team
    Editorial Team
    2026-05-26T07:27:06+00:00Added an answer on May 26, 2026 at 7:27 am

    O(1) accurately describes inserting at the end of the array. However, if you’re inserting into the middle of an array, you have to shift all the elements after that element, so the complexity for insertion in that case is O(n) for arrays. End appending also discounts the case where you’d have to resize an array if it’s full.

    For linked list, you have to traverse the list to do middle insertions, so that’s O(n). You don’t have to shift elements down though.

    There’s a nice chart on wikipedia with this: http://en.wikipedia.org/wiki/Linked_list#Linked_lists_vs._dynamic_arrays

                              Linked list   Array   Dynamic array   Balanced tree
    
    Indexing                          Θ(n)   Θ(1)       Θ(1)             Θ(log n)
    Insert/delete at beginning        Θ(1)   N/A        Θ(n)             Θ(log n)
    Insert/delete at end              Θ(1)   N/A        Θ(1) amortized   Θ(log n)
    Insert/delete in middle     search time 
                                    + Θ(1)   N/A        Θ(n)             Θ(log n)
    Wasted space (average)            Θ(n)    0         Θ(n)[2]          Θ(n)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a master list of the Big-O notation for everything? Data structures, algorithms,
I'm looking for Big O notation - avereage , for only the access of
I read about Big-O Notation from here and had few questions on calculating the
I'm having a hard time wrapping my head around the big-O notation for a
Order notation question, big-o notation and the like: What does the max and min
What's the correct big O notation for an algorithm that runs in triangular time?
How would you characterize the below in big-O notation? rotors = [1,2,3,4,5 ...] widgets
I'm still learning about complexity measurement using the Big O Notation, was wondering if
Without resorting to asymptotic notation, is tedious step counting the only way to get
I found some references about big O notation, but as far as I can

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.