Discussion Board
There are no previous messagesGo to the following message
Current Forum: 15-211 Main Forum
Date: Tue Dec 18 2001 7:42 pm
Author: Tan, Jit Ken <jitken@andrew.cmu.edu>
Subject: Running time of insert in a sorted array

This question is related to 15-211 falln 99 final problem 4. The answer key said that the insert operation of a sorted array is not cheap ( O(1) or O(log n) ). What is the running time of insert in a sorted array? I thought it is like O(log n) in an sorted array.

ken
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
Running time of insert in a sorted array      Tan, Jit Ken      Tue Dec 18 2001 7:42 pm       
Re: Running time of insert in a sor...      Lee, Charles C.      Tue Dec 18 2001 10:31 pm       
Re: Running time of insert in a ...      Raff, Paul      Tue Dec 18 2001 10:57 pm       

Back to previous screen