nwf / dyna

Dyna2 compiler and REPL
GNU Affero General Public License v3.0
146 stars 20 forks source link

Default prioritization #19

Open timvieira opened 11 years ago

timvieira commented 11 years ago

At the moment we use FIFO.

For acyclic programs there is probably little advantage to straying away from topological order. Computing topological order in a Dyna program isn't totally obvious (to me at least) because we are unrolling the graph as we go.

Should we require integer priorities for faster agenda maintenance? (Integer priorities speed things up asymptotically and the constant factors are better, if I'm not mistaken).

Eventually we'll need tools for diagnosing bad prioritization.

timvieira commented 11 years ago

ping.

jeisner commented 11 years ago

This is a research question. Related to BP prioritization in LDP, in fact. Both static analysis (lifted inference) and online adaptation could be helpful. The goals are

There may be simple heuristics that work well in practice.

On Sat, Jun 29, 2013 at 11:08 PM, Tim Vieira notifications@github.comwrote:

ping.

— Reply to this email directly or view it on GitHubhttps://github.com/nwf/dyna/issues/19#issuecomment-20241310 .

timvieira commented 11 years ago

Yes, obviously a research problem.

What are the simple heuristics we'd like soon? How about for acyclic programs?