sallam-ahmed / Polynomial-Calculator

Data Structure 2015 Course Project
Apache License 2.0
0 stars 3 forks source link

Plynomial Autocompletion #36

Open sallam-ahmed opened 8 years ago

sallam-ahmed commented 8 years ago

Any previous entered polynomial and loaded in the history will be auto-completed instead of typing it again.

khaledkee commented 8 years ago
khaledkee commented 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.

sallam-ahmed commented 8 years ago

@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 .

sallam-ahmed commented 8 years ago

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.