I am searching for a good algorithm for managing configuration variables in form of tree with wildcards (x.y.z, x..z, x..* etc.).
Is there something with search time better than O(N)? (insert / delete time are not so important).
Currently I have a flat list (pairs key=>value), and I search all matching values, then sort them by importance (basically, more wildcards => less important) and choose one with best score.