خرید بک لینک

Vote count: 0

In Swift, I am trying to implement a word Trie, using a literal representation as a series of nested NSObjects. Here is the Trie.

let GEENITRIE:NSObject = [
    "i":[
            "need":[
                    "tutoring":[
                            "in":[
                                    "**ARG**":"{courserequest}"]],
                    "a":[
                            "tutoring":[
                                    "session":[
                                            "in":[
                                                    "**ARG**":"{courserequest}"]]]]],
            "want":[
                    "tutoring":[
                            "in":[
                                    "**ARG**":"{courserequest}"]]],
            "would":[
                    "like":[
                            "tutoring":[
                                    "in":[
                                            "**ARG**":"{courserequest}"]]]]],
    "tutoring":[
            "in":[
                    "**ARG**":"{coureserequest}",
                    "and":[
                            "**ARG**":"{doublecourse}"]],
            "at":[
                    "**ARG**":"{timeparse}"]],
    "a":[
            "tutoring":[
                    "session":[
                            "in":[
                                    "**ARG**":"{courserequest}"],
                            "at":[
                                    "**ARG**":"{timeparse}"]]]]]

However, when I compile this with the rest of my command line app, it takes about 26 seconds, then the following error comes up: Error:(23, 26) expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions

Why does this happen, and what is the best way to implement this so this does not happen?

asked 33 secs ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 25 فروردين 1395 ساعت: 3:11

صفحه بندی