For what purpose are you storing them in the tree?
If it's just for the purposes of finding them again later in O(log N) time
precisely, I have about ~ 2M items in the b+tree!
With strings it's quite obvious to use lexicographic ordering, human dictorionaries are sorted this way.
With complex numbers... I don't know, it leaves me a bit more perplexed.
More than I do with vectors in "
vector similarity" problems.
object_A -> neural network -> features extractor as n-dimensional vector (of float32_t)
object_B -> neural network -> features extractor as n-dimensional vector (of float32_t)
query(db) --> list the first k similar objects --> b+tree scan -> vector similarity: cmp(object_A, object_B)
----
it's about the same algorithm that google-image uses, I implemented it from scratch, in myC.
Complex numbers instead have to do with complex analysis.
I find myself a bit "displaced", even if ...
... complex numbers are nothing more than a two-component vector
and in vector similarity using 1024-component vectors ...
However in "
vector similarity" I can very well allow myself to use the "
cosine similarity"
a number between -1 and +1 to compare two "
object-feature-vectors(1)".
That is, I don't care at all about the magniture of the vectors
only whether or not they point in the same direction,
because if they point in the same direction alpha, it means that that feature-alpha is common
It's profoundly different!

(1) a vector that tries to express with numbers how-much "feature
" is present