2
$\begingroup$

I recently began working as a tutor with my college, helping younger students struggling in intro classes get their footing.

Many of my students particularly struggle with basic data structures (linked lists, heaps, binary [search] trees, hash tables, etc.); I'll call them DS's for short. I can often explain a DS where they make sense of it how it works (with a little help from Wikipedia). To further help them develop an understanding of these DS's, I'd like to provide simple examples for them to work through (think 3-layer binary search tree with 5-7 nodes), as well as some common applications of these data structures.

This leads me to my question. Do you know of a collection of basic data structure examples I could use for tutoring students? To clarify, I am not searching for implementations of these DS's, but specifically written/diagrammed problems of the common data structures such as the ones your professor might work through in lecture during the first two years in a university program.

Raphael
73.4k31 gold badges184 silver badges406 bronze badges
asked Feb 22, 2016 at 21:08
$\endgroup$
2
  • 3
    $\begingroup$ Have you looked in the standard textbooks? $\endgroup$ Commented Feb 23, 2016 at 12:58
  • 1
    $\begingroup$ We've actually proposed a StackExchange site to specifically help with CS education questions like this one. Come support us here: area51.stackexchange.com/proposals/92460/… $\endgroup$ Commented Jun 9, 2016 at 14:44

3 Answers 3

2
$\begingroup$

If you want diagrammatic material on data structures like binary search trees etc. then Introduction to Algorithms by C.L.R.S. (Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein) should do the job.

Guy Coder
5,2113 gold badges30 silver badges66 bronze badges
answered Feb 23, 2016 at 12:10
$\endgroup$
1
$\begingroup$

If you want real-world examples of data structures in action, perhaps check out some not-too-large open source project that turns out interesting to your students and have them look for use of data structures. One possible example is micro emacs, the (tiny!) editor famous for being Linus Torvalds' favorite.

A collection of small, useful programs (for Unix, in C) showing all sorts of techniques (including data structures) is Kernighan and Pike's "Software Tools" (Addison Wesley, 1976). Dated, but still relevant. Or you might look at Noel Kalicharan "C by Example" (Cambridge University Press, 1994), which looks relevant (haven't seen it, Google let's me peek at it and it looks relevant).

answered Feb 23, 2016 at 13:40
$\endgroup$
0
$\begingroup$

The Lempel-Ziv Encoding algorithm uses hashtable. It was my homework at college to write this algorithm to compress a text file.

I want to add that this is not a complete answer to your question. But you can find all these data structures if you search your everyday programs.

answered Feb 24, 2016 at 15:47
$\endgroup$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.