or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
35 used & new from $39.23

Have one to sell? Sell yours here
 
   
Purely Functional Data Structures
 
 
Tell the Publisher!
I’d like to read this book on Kindle

Don’t have a Kindle? Get your Kindle here.
 
  

Purely Functional Data Structures (Paperback)

~ (Author) "A distinctive property of functional data structures is that they are always persistent-updating a functional data structure does not destroy the existing version, but rather..." (more)
Key Phrases: enclosing suspension, amortized data structures, recursive slowdown, Map Map (more...)
4.3 out of 5 stars  See all reviews (6 customer reviews)

List Price: $50.00
Price: $39.25 & this item ships for FREE with Super Saver Shipping. Details
You Save: $10.75 (22%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, November 24? Choose One-Day Shipping at checkout. Details
23 new from $39.25 12 used from $39.23

Formats

Amazon Price New from Used from
  Hardcover, April 12, 1998 $58.40 $41.26 $45.54
  Paperback, June 30, 1999 $39.25 $39.25 $39.23

Frequently Bought Together

Purely Functional Data Structures + Real World Haskell + The Haskell Road to Logic, Maths and Programming (Texts in Computing)
Price For All Three: $104.83

Show availability and shipping details

  • This item: Purely Functional Data Structures by Chris Okasaki

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • Real World Haskell by Bryan O'Sullivan

    In Stock.
    Ships from and sold by Amazon.com.
    This item ships for FREE with Super Saver Shipping. Details

  • The Haskell Road to Logic, Maths and Programming (Texts in Computing) by Kees Doets

    In Stock.
    Ships from and sold by Amazon.com.
    Eligible for FREE Super Saver Shipping on orders over $25. Details


Customers Who Bought This Item Also Bought

Real World Haskell

Real World Haskell

by Bryan O'Sullivan
4.6 out of 5 stars (22)  $43.08
The Haskell Road to Logic, Maths and Programming (Texts in Computing)

The Haskell Road to Logic, Maths and Programming (Texts in Computing)

by Kees Doets
5.0 out of 5 stars (5)  $22.50
Types and Programming Languages

Types and Programming Languages

by Benjamin C. Pierce
4.8 out of 5 stars (6)  $40.62
The Haskell School of Expression: Learning Functional Programming through Multimedia

The Haskell School of Expression: Learning Functional Programming through Multimedia

by Paul Hudak
3.9 out of 5 stars (11)  $35.09
Programming in Haskell

Programming in Haskell

by Graham Hutton
4.2 out of 5 stars (14)  $42.32
Explore similar items

Editorial Reviews

Review

"This book is important because it presents data structures from the point of view of functional languages...a handy reference for professional functional programmers...Most of the programs can easily be adapted to other functional languages. Even C and Java programmers should find implementing these data structures a relatively straightforward process...Programs are physically well structured and readable, and are displayed in boxes. Okasaki has produced a valuable book about functional programming, exploring a wide range of data structures...a significant contribution to the computer science literature." Computing Reviews


Product Description

Most books on data structures assume an imperative language such as C or C++. However, data structures for these languages do not always translate well to functional languages such as Standard ML, Haskell, or Scheme. This book describes data structures from the point of view of functional languages, with examples, and presents design techniques that allow programmers to develop their own functional data structures. The author includes both classical data structures, such as red-black trees and binomial queues, and a host of new data structures developed exclusively for functional languages. All source code is given in Standard ML and Haskell, and most of the programs are easily adaptable to other functional languages. This handy reference for professional programmers working with functional languages can also be used as a tutorial or for self-study.

Product Details


More About the Author

Chris Okasaki
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Chris Okasaki Page

Inside This Book (learn more)




What Do Customers Ultimately Buy After Viewing This Item?

Purely Functional Data Structures
70% buy the item featured on this page:
Purely Functional Data Structures 4.3 out of 5 stars (6)
$39.25
Real World Haskell
11% buy
Real World Haskell 4.6 out of 5 stars (22)
$43.08
Types and Programming Languages
8% buy
Types and Programming Languages 4.8 out of 5 stars (6)
$40.62
The Haskell Road to Logic, Maths and Programming (Texts in Computing)
6% buy
The Haskell Road to Logic, Maths and Programming (Texts in Computing) 5.0 out of 5 stars (5)
$22.50

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(7)
(1)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

 

Customer Reviews

6 Reviews
5 star:
 (3)
4 star:
 (2)
3 star:
 (1)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
4.3 out of 5 stars (6 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
69 of 70 people found the following review helpful:
5.0 out of 5 stars An elegant book, March 30, 2005
By Randall Helzerman (campbell, ca) - See all my reviews
(REAL NAME)      
Okasaki's slim volume is one of the best expositions on implementing data structures & algorithms in a functional language. After taking an introductory course on functional programming, this would be the book which tells you where to go next.

This book doesn't just present a rehash/rewrite of imperative data structures, only written in a functional language. Instead, Okasaki makes sure to emphasize benefits which only functional programming can bring to the table. For example, many functional data structures can compactly represent not just their current state, but all of their past states as well--a feature called "Persistence". Also, functional newbie programmers might be wondering why lazy vs. strict programming is a big deal, and Okasaki shows clearly where data structures can benefit from either being lazy or being strict.

For the advanced reader, Okasaki also presents several powerful techniques for analyzing the runtime of algorithms, including the so-called "Banker's Method" and the "Physicist's Method" for analyzing amortized algorithms.

I hope that Okasaki comes out with a 2nd edition of this book; there is one missing piece in particular which I really wish he would have included: Although he presents an EXTREMELY lucid description of how to implement Red-Black trees in a functional language, he only presented algorithms for insertion and querying. Of course, deletion from a red-black tree is the hardest part, left here, I suppose, as an exercise to the student. If you want to supply this missing piece yourself, check out a paper by Stefan Kars, "Red-black trees with types", J. Functional Programming 11(4):425-432, July, 2001. It presents deletion routines, but you'll still want to read Okasaki's book first, for unless you're very much smarter than me you won't be able to understand Kars' paper until you read Okasaki's exposition of red black trees.

Finally, this book is not just useful for programmers in functional languages; logic programmers, using prolog or a varient, will also find this book very helpful, because most of the techniques (all of the techniques, really, with the exception perhaps of the lazy programming stuff) can be directly applied in a prolog programming setting as well.

After reading this book and implementing some of the data structures for yourself, you'll be amazed at how fast algorithms can run, even when written in a functional language!
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
26 of 30 people found the following review helpful:
4.0 out of 5 stars Strange choice of implementation languages, November 6, 2006
By S. Brickner (Alexandria, VA United States) - See all my reviews
(REAL NAME)   
The description of the book says it includes source code in both ML and Haskell. Unfortunately, the body of the text uses ML exclusively, and the Haskell code is banished to an appendix.

I say "unfortunately", because many of the data structures used depend on lazy evaluation, which comes quite naturally to Haskell, and seems to require some sort of non-standard extension in ML.

While the content is good, I wish it would have used Haskell as the primary exposition language.
Comment Comment (1) | Permalink | Was this review helpful to you? Yes No (Report this)



 
5 of 5 people found the following review helpful:
5.0 out of 5 stars Intro to the functional style and fun algorithmic content, March 28, 2008
If you are beginning to learn functional programming, this is a good book to study. It focuses much on the "no assignment" aspect of the functional style; a good place to start. And does this on one data structure after another allowing it to be easily understood by readers with a procedural background. For the more advanced reader, the algorithmic content of the book is good reading and I find myself picking this book every year or so just to entertain myself. The applicability of the data structures is limited in that most languages come with basic libraries that suffice most of the time.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

5.0 out of 5 stars Theoretically Interesting and Practically Useful
I use this book all the time to implement and improve purely functional data-structures. It is amazing the performance improvements possible by using good data-structures in... Read more
Published 6 months ago by Jay McCarthy

4.0 out of 5 stars Hash Tables are included, briefly.
A correction to another review: Hash Tables are included, briefly.
Published on November 24, 2001

3.0 out of 5 stars Interesting, but more academic than practical
This is the best book available on the implementation of data structures in functional programming languages (e.g. ML, Haskell). Read more
Published on June 11, 2000

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Discussion Replies Latest Post
Most influencial computer pioneers? 6 2 days ago
Search Customer Discussions
Search all Amazon discussions
   


Listmania!


So You'd Like to...


Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.