Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Basic Data Structures (SYWBP-6-1/2)

Loading...

Sign in or sign up now!
5,002
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 26, 2009

In this video, we go over the basic data structures: arrays and linked lists, in Java. (1/2)

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (Theotherguy1989)

  • Excellent tutorial, thanks.

    Lets say in a linked list there are 5 elements, how can we delete the third element with an efficiency of O(1)? Traversing upto the third element will take up O(n), is that correct? Then we would set its pointer to null, and then set the pointer of 2nd element to the fourth one as its next?

  • Well technically if your linked list had a size of 5 elements the time to delete the 3rd would always be the same, it would have O(1) efficiency.

    However deleting the kth element from an arbitrary list of length n will take O(n) time. Did I mistate this in the video?

  • The video is one of the best I've seen, very informative.

    I was referring to deleting the kth element from an arbitrary list of length n.

    Also is it possible to have a video just dedicated to the efficiency of different data structures, and pointers to any other links would also be helpful.

    Thanks for the very educational video.

  • Thanks.

    My next video is specifically on big O, analyzing runtime, and reasoning about algorithms. Unfortunately I've been pretty swamped this semester and haven't had much time to make it. Thanks for watching.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Great :)))

  • What is the difference between a linked list and an array?

  • Thanks you so much buddy!

  • Man, I must say you have a awesome video, I really enjoyed watching your video on linked list, I am taking a java class that is teaching me linked list this week, this video rocks!

  • You sound like throwing-up. I guess u made this video right after having a heavy meal...lol.....other than that, 5 stars!

  • very good demonstration

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more