Answer me on StackOverflow (graph theory)

  • Status: Closed
  • Præmier: $35
  • Modtagne indlæg: 3
  • Vinder: oskarsaravia

Konkurrence Instruktioner

Synonym chains - Efficient routing algorithm for iOS/sqlite
[login to view URL]

I'll award the most useful answer $35 within 24 hours. Your answer might include a expectiminimax tree, or other heuristic/optimization. Get me on a useful path to solve this.

(If your stackoverflow username does not match your upwork username, I suggest you do an md5 hash of your upwork username, and append the first 2 letters of the hash to the end of your stackoverflow reply.)

A synonym chain is a series of closely related words that span two anchors. For example, the English words "black" and "white" can connected as:

black-dark-obscure-hidden-concealed-snug-comfortable-easy-simple-pure-white
Or, here's "true" and "false":

true-just=fair=beautiful=pretty-artful-artificial-sham-false
I'm working on a thesaurus iOS app, and I would like to display synonym chains also. The goal is to return minimum spanning tree(s) of a weighted planar graph of word relations. My source is a very large thesaurus with weighted data, where the weights measure similarity between words. (e.g., "outlaw" is closely related to "bandit", but more distantly related to "rogue.")

What optimization strategies do you recommend to make this realistic, e.g., within 5 seconds of processing on a typical iOS device? Assume the thesaurus has half a million terms, each with 20 associations. I'm sure there's a ton of prior research on these kinds of problems, and I'd appreciate pointers on what might be applied to this.

My current algorithm involves recursively descending a few levels from the start and end words, and then looking for intercepting words, but that becomes too slow with thousands of sqlite (or Realm) selects.

Anbefalede Evner

Arbejdsgiverfeedback

“oskarsaravia had exactly the solution to my problem. thanks!”

Profilbillede wxidea, United States.

Bedste indlæg fra denne konkurrence

Se flere indlæg

Offentlig Præciserings Opslagstavle

Ingen beskeder endnu.

Sådan kommer du i gang med konkurrencer

  • Opret din konkurrence

    Opret din konkurrence Hurtigt og nemt

  • Få tonsvis af indlæg

    Få tonsvis af indlæg Fra hele verden

  • Tildel det bedste indlæg

    Tildel det bedste indlæg Download filerne - Nemt!

Opret en Konkurrence Nu eller slut dig til os i dag!