Paresh
Paresh

Reputation: 138

How NSDictionary algorithm works in iOS?

I need to understand how NSDictionary algorithm works in iOS?

I am assuming it is using the hashing algorithm internally just like in Java HashMap uses concept of bucket and hashcode.

Are mechanism of NSDictionary is the same as that of HashMap in Java?

Upvotes: 1

Views: 716

Answers (1)

zaph
zaph

Reputation: 112857

NSDictionary uses CFDictionary which is open source by Apple here.

Also see Let's Build NSMutableDictionary by Mike Ash.

Upvotes: 5

Related Questions