backtracking

    3热度

    2回答

    什么OCaml库在那里提供惰性列表处理?与Stream类型和语法糖 type 'a lazy_list = (*'*) | Nil | Cons of 'a * 'a lazy_list lazy_t let from f = let rec gen n = lazy ( match f n with | Some x

    2热度

    5回答

    我想评估各种解决N皇后问题的方法的性能比较。主要是基于AI metaheuristics的算法,如模拟退火,禁忌搜索和遗传算法等与精确方法(如回溯)相比较。有没有可供学习的代码?许多现实世界的优化问题,例如它考虑精确方法和metaheuristics之间的合作方案。