backtracking in Date Structures and Algorithm Analysis in C
2015-01-26 19:52
447 查看
# turnpike reconstruction problem
reconstruct a point set from the distancesThis algorithn generally:O(N^2*logN) but take exponential time in the worst case.
If there is no back tracking, the runningtime is O(N^2*logN)
but if backtracking happens, theperformance is affected.
# eight queens
find a placement of 8 queens on a 8*8chessboard such that no two queens are in the same row,column,diagonal,orantidiagonal of the chessboardconstrains:
Si = {1,2,3,4,5,6,7,8} for 2<=i<=8
xi != xj if i != j
(xi - xj)/(i-j) != 1 or -1
n! candidates in the solution space
also using backtracking with a decisiontree
相关文章推荐
- dynamic programming in Date Structures and Algorithm Analysis in C
- divide and conquer in Date Structures and Algorithm Analysis in C
- Data Structures and Algorithm Analysis in C 学习之List
- 《Data Structures and Algorithm Analysis in C》学习与刷题笔记
- Data Structures and Algorithm Analysis in C, Second Edition(《数据结构与算法分析》C语言版 第二版)——Mark Allen Weiss
- Data Structures and Algorithm Analysis in C (数据结构与算法分析) 读书总结
- 摘自《Data Structures and Algorithm Analysis in C》
- Data Structures and Algorithm Analysis in c++ 第一章笔记和部分习题
- Data Structures and Algorithm Analysis in C 学习之List反转
- Implementation codes of Data Structures and Algorithm Analysis in C (1)
- Data Structures and Algorithm Analysis in Java_IntroductionTest
- 《Data Structures and Algorithm Analysis in Java》Second Edition中文版笔记
- Data Structures and algorithm analysis—1.2.1&1.2.2&1.2.3 exponents&logarithms&series(数据结构—指数,对数,级数)
- 基本数据结构实现(Data Structures and Algorithm Analysis 2rd Edition)
- Data Structures and algorithm analysis—1.3. A Brief Introduction to Recursion(数据结构—1.3 递归的简介)(之二)
- 《Data Structure And Algorithm Analysis In C++》读书笔记三
- Data Structures and algorithm analysis—1.2.4&1.2.5Modular Arithmeti&The P Word(数据结构—模数运算&P字)
- 《Data Structure And Algorithm Analysis In C++》读书笔记一
- 《Data Structure And Algorithm Analysis In C++》读书笔记二
- how to compile source code of "Data Structures & Algorithm Analysis in Java" writen by Mark Allen Weiss