Open sallam-ahmed opened 8 years ago
Remember the order of the input doesn't matter. In the trie example above, if the input is 5+2X2+X it's the same as X+5+2X2. But if X or 5 were not presented, the Trie can't find any suggestion. I mean the only restriction is that the input should form a prefix of a polynomial in the history.
@khaledkee Looks like it's going to be tricky as a byte not just a bit.. hence we don't want the user to type the whole polynomial.. I think of reassigning it to phase 5 instead, until we do the proper research about the preferred method .
The auto-completion algorithm should be performance favored at first hence it will be called with each new character added to the RTBox
Like O((N * M +K) * lg2 (N *M)) isn't a good performance complexity for text change.
Any previous entered polynomial and loaded in the history will be auto-completed instead of typing it again.