-
N皇后问题
N-皇后问题是我们在数据结构和算法类的课程上经常遇到的一个问题,它的经典求解方法是采用回溯的方法,可以产生所有的可行解,但是实际上运行时间非常长,能够解决的问题规模相对非常小。有没有一种方法,可以在极短的时间内求解上百万个皇后的N-皇后问题?答案是可以,用局部搜索!Rok Sosic和Jun Gu (顾钧)在20余年前提出的系列快速局部搜索算法可以在极短的时间内,求解百万量级的N-皇后问题。
- 2022-01-22 06:02:25下载
- 积分:1
-
C#操作数据库显示Customers数据表第3-7条记录
显示Customers数据表第3-7条记录,C#操作数据库显示Customers数据表第3-7条记录,其实做出来例子,才知道,很简单啊,不过需要把数据库先连接好,看如下代码:
private void button1_Click(object sender, EventArgs e)
{//显示Customers数据表第3-7条记录
SqlConnection MyConnection=new SqlConnection();
MyConnection.ConnectionString = @"Data Source =.SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True";
MyConnection.Open();
SqlCommand MyCommand =new SqlCommand("Select * From Customers ORDER BY CustomerID", MyConnection);
DataSet MySet = new DataSet();
SqlDataAdapter MyAdapter = new SqlDataAdapter(MyCommand);
MyAdapter.Fill(MySet, 2, 5, "Customers");
this.dataGridView1.DataSource=MySet.Tables["Customers"];
}
- 2022-03-03 23:39:45下载
- 积分:1
-
hongwai-lcd.c
基于51单片机的 红外+LCD+继电器C程序显示
实现的功能较多,比较适合初学的人。(Based on 51 single-chip infrared+LCD+ relay C program display of more functions, more suitable for beginners person.)
- 2013-08-17 11:14:48下载
- 积分:1
-
Serial-communication
Matlab环境下PC机与单片机的串行通信及数据处理(Serial communication and data processing Matlab environment PC and SCM)
- 2013-12-11 13:50:53下载
- 积分:1
-
DS18B20温度检测
#include
#include
#define MAXNUM 8 //定义最多有8个 DS18B20
sbit DQ=P2^3; //定义DS18B20总线端
sbit RS=P2^0; //液晶端口控制线端口定义
sbit RW=P2^1; //液晶端口控制线端口定义
sbit E= P2^2; //液晶端口控制线端口定义
sbit keyenter =P3^2; //功能按键
- 2022-02-14 19:26:16下载
- 积分:1
-
iList
c++实现的int栈,里面有多个测试的main,可一一测试各种功能(int stack c++ realize there are multiple tests the main, eleven test various functions)
- 2012-10-06 15:54:03下载
- 积分:1
-
AddPalette
在AutoCAD中添加一个自定义分页侧边栏。(In AutoCAD add a custom tab sidebar.)
- 2020-11-29 14:09:29下载
- 积分:1
-
Algorithm notes
说明: 算法笔记书籍上每一章节每一小节出现的算法题目的源代码。(The source code of the algorithm Title appearing in each chapter and section of the algorithmic notebook.)
- 2019-01-30 18:06:07下载
- 积分:1
-
c# 农场小游戏 源码(有播种、开花、收货等功能)
开心农场收货小游戏 c#版
- 2013-05-16下载
- 积分:1
-
46845435
类似于Pinterest的瀑布墙图片展示demo,精选ios编程学习源码,很好的参考资料。(Similar to the Pinterest waterfall wall pictures demo, select learning IOS programming source code, a good reference.)
- 2013-12-06 10:28:53下载
- 积分:1