Top "Map" questions

A dictionary maps keys to values allowing efficient retrieval of values by keys.

Polygon area calculation using Latitude and Longitude generated from Cartesian space and a world file

Given a series of GPS coordinate pairs, I need to calculate the area of a polygon (n-gon). This is relatively …

map geocoding latitude-longitude area
What requirements must std::map key classes meet to be valid keys?

I want to map objects of a given class to objects of another. The class I want to use as …

c++ stl map key
C# to Java - Dictionaries?

Is it possible in Java to make a Dictionary with the items already declared inside it? Just like the below …

c# java dictionary map new-operator
Decode sparse json object to php array

I can create a sparse php array (or map) using the command: $myarray = array(10=>'hi','test20'=>'howdy'); …

php map json sparse-array
K-means algorithm variation with equal cluster size

I'm looking for the fastest algorithm for grouping points on a map into equally sized groups, by distance. The k-means …

algorithm map cluster-analysis k-means
Iterating over a map entryset

I need to iterate over the entry set of a map from which I do not know its parameterized types. …

java loops generics map entryset
Tuple Unpacking in Map Operations

I frequently find myself working with Lists, Seqs, and Iterators of Tuples and would like to do something like the …

scala map iterator tuples iterable-unpacking
How to create Custom MKAnnotationView and custom annotation title and subtitle

I need to create above Annotation view on MKMapView. I am able to create the custom annotation view but on …

ios map mkannotation iphone-5 mkannotationview
Library to encode/decode from json to java.util.Map?

Does anyone knows a java library that could easily encode java Maps into json objects and the other way around? …

java json map converter
When should I use ConcurrentSkipListMap?

In Java, ConcurrentHashMap is there for better multithreading solution. Then when should I use ConcurrentSkipListMap? Is it a redundancy? Does …

java performance multithreading map concurrenthashmap