Skip to Content
Functional Programming in Java
book

Functional Programming in Java

by Pierre-Yves Saumont
January 2017
Intermediate to advanced
472 pages
14h 42m
English
Manning Publications
Content preview from Functional Programming in Java

Chapter 10. More data handling with trees

This chapter covers

  • Understanding the relationships between size, height, and depth in a tree structure
  • Understanding the relationship between insertion order and the binary search tree structure
  • Traversing trees in various orders
  • Implementing the binary search tree
  • Merging, folding, and balancing trees

In chapter 5, you learned about the singly linked list, which is probably the most widely used data structure in functional programming. Although the list is a very efficient data structure for many operations, it has some limitations, the main one being that the complexity of accessing elements grows proportionally with the number of elements. For example, searching for a particular element may ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Functional Programming in Java

Functional Programming in Java

Venkat Subramaniam
Learning Java Functional Programming

Learning Java Functional Programming

Richard M Reese, Richard M. Reese

Publisher Resources

ISBN: 9781617292736Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link