I need a data structure with the following properties:
It would be good if you also directed to an implementation of this structure in C or C++.
How to identify which data structure or algorithm we should first attempt to solve a particular problem. Like if we have a sorted input array, we should start from the Binary Search. Similarly, if we can have a well detailed document that can help, I would highly appreciate it.
How are data structures used? In general, data structures are used to implement the physical forms of abstract data types. Data structures are a crucial part of designing efficient software. They also play a critical role in algorithm design and how those algorithms are used within computer programs.
Are you looking for a sparse matrix ?
Check this out - you could alter the element type to float
if this does everything you want.
Concise Sparse Matrix Package in C
For C++ you could use Boost.uBLAS
- sparse_matrix details here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With