For the incomplete methods, we kept the representation of the queens by a table and the method of calculation to determine if two queens are in conflict, which is much faster for this kind of problems than the representation by a matrix. heuristics: descent. Tests: 100 queens in less than 1 second and 67 iterations. 500 queens in 1 second and 257 iterations. 1000 queens in 11 seconds and 492 iterations. heuristics: Simulated annealing. Tests: 100 queens in less than 1 second and 47 iterations. 500 queens in 5 seconds and 243 iterations. 1000 queens in 13 seconds and 497 iterations. heuristics: based on Simulated Annealing. Tests: 100 queens in less than 1 second and 60 iterations. 500 queens in 1 second and 224 iterations. 1000 queens in 5 seconds and 459 iterations. 10 000 queens in 20 minutes 30 seconds and 4885 iterations.
標簽: the representation incomplete methods
上傳時間: 2015-05-05
上傳用戶:1159797854
事例介紹了19種為數(shù)據(jù)庫添加新記錄的方法。作為使用ADO和DAO以及SQL語句的各種操縱數(shù)據(jù)庫的手段。使用注意:使用代碼靈活但容易出錯,直接配置控件簡單但不靈活。本例中沒有使用ODBC和DSN,而是用VB和ACCESS數(shù)據(jù)庫通過JET連接為例子。請隨便修改和使用本例,但在復制過程中請保留本例所有文件的完整性。
標簽: ADO DAO SQL 數(shù)據(jù)庫
上傳時間: 2013-12-22
上傳用戶:teddysha
Although there has been a lot of AVL tree libraries available now, nearly all of them are meant to work in the random access memory(RAM). Some of them do provide some mechanism for dumping the whole tree into a file and loading it back to the memory in order to make data in that tree persistent. It serves well when there s just small amount of data. When the tree is somewhat bigger, the dumping/loading process could take a lengthy time and makes your mission-critical program less efficient. How about an AVL tree that can directly use the disk for data storage ? If there s something like that, we won t need to read through the whole tree in order to pick up just a little bit imformation(a node), but read only the sectors that are neccssary for locating a certain node and the sectors in which that node lies. This is my initial motivation for writing a storage-media independent AVL Tree. However, as you step forth, you would find that it not only works fine with disks but also fine with memorys, too.
標簽: available libraries Although nearly
上傳時間: 2014-01-22
上傳用戶:zhoujunzhen
eForth is a small portable Forth design for a wide range of microprocessors. This is the first implementation for 8086. As machine dependency is consolidated into 31 code words, moving eForth to other CPU s will be much less of a chore comparing to other Forth models.
標簽: microprocessors portable eForth design
上傳時間: 2014-01-25
上傳用戶:從此走出陰霾
graspForth is my humble attempt at a Forth-in-C that has the following goals: GCC ......... to support all 32-bit micros that GCC cross-compiles to. Relocatable . to be able to run in-place in either Flash or Ram. Fast ........ to be "not much" slower than an assembly based native Forth. Small ....... to fit-in approx 300 words in less than 25Kbytes on a 32-bit machine. Portable .... to achieve a 5 minute port to a new 32bit micro-processor, or micro-controller.
標簽: graspForth Forth-in-C following attempt
上傳時間: 2015-05-23
上傳用戶:tfyt
Decoding most of the infrared signals can be easily handled by PIC16C5X microcontrollers. This application note describes how this decoding may be done. The only mandatory hardware for decoding IR signals is an infrared receiver. The use of two types is described here. Both are modular types used often by the consumer electronics industry. The first type responds to infrared signals modulated at about 40 kHz. The second responds to non-modulated infrared pulses and has a restricted range. The hardware costs of each approach will be less than two dollars.
標簽: microcontrollers Decoding infrared handled
上傳時間: 2015-05-24
上傳用戶:ruan2570406
Expert Choice represents a significant contribution to the decision making process 工t assists a decision maker in solving complex problems involving many criteria and several courses of action . An Expert Choice solution to a problem reflects the expertise of the decision maker , not the computer . Behavioral scientists have spent many years studying the human mind and how it makes decisions . They have found that humans are influenced by their previous experiences and this causes them to have biases . Basic instincts , preferences and environmental factors also play key roles in how we analyze data and make decisions . There 15 way to remove these factors from human decision making , nor would we necessarily want to , but as the problems of our world become more and more complex , it 15 necessary for us to employ a framework to help make more logical and less biased decisions while still taking our feelings and intuition into consideration .
標簽: contribution significant represents decision
上傳時間: 2015-06-02
上傳用戶:gmh1314
完整的FPGA連接圖和調試源碼,圖是DSN格式,但可以直接拖進PROTEL里打開。
上傳時間: 2014-07-11
上傳用戶:a673761058
程序名稱(小型超市前臺收款系統(tǒng))壓縮包內包含源文件和數(shù)據(jù)庫,用數(shù)據(jù)建一個名為“chaoshi”(不含引號)的數(shù)據(jù)源--系統(tǒng)DSN
標簽: 程序 數(shù)據(jù)庫
上傳時間: 2015-06-08
上傳用戶:dave520l
深度學習整站系統(tǒng) v1.10 1、將整個目錄上傳到虛擬空間,即可直接訪問 index.asp 首頁文件(不可以將index.asp改成其它的名字,否則系統(tǒng)跳轉出錯),不需要做其他的操作。 2、后臺登陸文件“deep_login.asp”可任意更名(隱藏登陸路徑) 3、管理員用戶:admin 密碼:admin 登錄管理并修改密碼. 3、請確保你存放的文件夾有everyone可寫權限 4、默認數(shù)據(jù)庫為database.mdb(可用記事本打開Connections/connDB.asp修改數(shù)據(jù)庫路徑或改名等設置,如不了解不要改動) 5、本站在開發(fā)時為方便DW采用了DSN調用,原數(shù)據(jù)文件為“connDB_開發(fā)時文件.asp”可參照調用文件對比 6、如學習需要導入站點:文件名“deepteach.ste”,DSN數(shù)據(jù)庫名為“DeepTeach”,web別名“deepteach”開發(fā)實際路徑“E:\深度學習 整站系統(tǒng)”,將數(shù)據(jù)文件“connDB.asp”內注釋改成“開發(fā)設置代碼”(具體見connDB.asp)
上傳時間: 2014-01-18
上傳用戶:jackgao