#if !defined(AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_)
#define AFX_GAQUEEN_H__C26AE0A3_F9B4_426F_A324_B460CC7946CB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CGAQueen
{
public:
CGAQueen(int nPopulation,int nIteration,float Mutation,int mChBoard)
virtual ~CGAQueen()
void Clear() // to clear chess board with 0 value
void InitialPopulation() // to create the first and initial randompopulation
void FillArea(int index) // to fill chess board with desired chromosome
int CostFunc(int index) // determine the cost of matrix[index][index]
void PopulationSort() // to sort population from the best to the worst
void GenerateCrossOverMatrix() // a way to create children from parent is CcrossOver
void Mating() // to create children from parents
void Ap
Techniques for storing and processing data are at the heart of all programs. The term data structure is used to describe the way data is stored, and the term algorithm is used to describe the way data is processed.
This a translation of the ToyFDTD c code available from the web site
http://www.borg.umn.edu/toyfdtd/ToyFDTD1.html
This some optimization to use MATLAB matrix notation. Others may find a way to further optimize the nested loops.
This book is good for learning C++.It conclude five parts:professional c++ introduction,C++ codeing the professional way,mastering advanced features of c++, ensuring Bug-free code and using libraries and patterns.
Abstract
The Lucene Server project is an attempt to extend the Jakarta Lucene tool with server capabilities.
Lucene is a robust Java API that enables you creating indexes from text sources and perform powerful searches on these indexes. With Lucene, creating an index must be done programmatically and there are almost no possibilities of integrating index management in a distributed environment. In other words, out of the box, Lucene is suitable for integrating indexing and searching possibilities in a single application but not for providing index/search services for multiple applications.
The Lucene Server project comes with a Java API that propose the following
make it easy to create indexes in a declarative way by simply providing an XML configuration document.
make it easy to personalize the way Lucene must handle different kind of data sources.
provide services for index management and searching that can be accessed from several applications.
enable batch tasks scheduling.
Contains source to demonstrate how to copy/delete files and folders with HFS+ APIs. It also demonstrates a technique to rename an object if an object of the same name exists in the destination.
This sample shows how to perform these operations in an MP-safe way.
FIST可堆疊文件系統,linux文件系統修改相關的開源軟件,使得對linux文件系統功能的改進很簡單了
The FiST (File System Translator) system combines two methods to solve the above problems in a novel way: a set of stackable file system templates for each operating system, and a high-level language that can describe stackable file systems in a cross-platform portable fashion. Using FiST, stackable file systems need only be described once. FiST s code generation tool, fistgen, compiles a single file system description into loadable kernel modules for several operating systems (currently Solaris, Linux, and FreeBSD). The project demonstrates that with FiST, code size and development time are reduced significantly, while imposing a small performance overhead of only 1-2%. These benefits are achieved, as well as portability, without changing existing operating systems or file system.
To date tests are still the best solution mankind has found to deliver working software.
This book is the sum of four years of research and practice in the testing
field. The practice comes from my IT consulting background, first at Octo Technology
and then at Pivolis the research comes from my involvement with open
source development at night and on weekends.
Visual C++
Windows Shell Programming
Welcome to Visual C++ Windows Shell Programming! With this book, you ll learn how to program the
Windows Shell, customize its behavior and integrate your applications with it. You ll discover how to
use and modify its features to best effect, and the way to call shell API functions whose
documentation is scant. Programming the shell isn t difficult, but few books explain the subject in its
entirety.