资源简介
C#编写 教务管理中自动排课系统 算法 源码
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.xml;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
namespace PaiKe
{
class Program
{
static void Main(string[] args)
{
PaiKe paike = new PaiKe();
paike.Test1();
Console.ReadLine();
}
}
class ClassUnit
{
static List CourseList = new List();
public const int WeekDay = 5;
public const int CourseCount = 6;
public int ID;
public int[] XuLie = new int[WeekDay * ClassUnit.CourseCount];
public ClassUnit(int id int[] xulie)
{
ID = id;
XuLie = xulie;
}
}
[Serializable()]
class Course
{
static int Seed = 0;
public int ID;
public int ClassID;
public string TeacherName;
public int TeacherID;
public string Name;
public int Priority = 0;
public Course(int id int techerid string name string teacherName int priority)
{
Seed++;
Name = name;
ID = id;
TeacherID = id;// techerid;
TeacherName = teacherName;
Priority = priority;
}
}
class CoursePriority
{
public static int[] Priority=new int[ClassUnit.CourseCount]{554421};
}
class PaiKe
{
Random rnd = new Random();
ClassUnit tClassUnit;// = new ClassUnit(1);
List ClassList = new List();
List CourseList = new List();
//---------------惩罚值列表--------------
//冲突
const int ChongTu = 200;
//一天有2节相同的课
const int OneDayForTowCourse = 150;
//连续2天有2节相同课
const int TowDayForTowCourse = 40;
//课程优先级单位值
const int CoursePr = 15;
void Init()
{
int[] Tshuzu ;
Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay]
{
111112
222233
333444
556668
8997710
};
tClassUnit = new ClassUnit(1 Tshuzu);
ClassList.Add(tClassUnit);
Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay]
{
111112
222233
333444
556668
8997710
};
tClassUnit = new ClassUnit(1 Tshuzu);
ClassList.Add(tClassUnit);
Tshuzu = new int[ClassUnit.CourseCount * ClassUnit.WeekDay]
{
111111111112
121212121313
131313141414
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1157 2007-02-27 11:16 PaiKe\PaiKe\Properties\AssemblyInfo.cs
目录 0 2007-02-27 11:16 PaiKe\PaiKe\Properties
文件 1944 2007-02-27 11:16 PaiKe\PaiKe\PaiKe.csproj
文件 5632 2005-12-08 14:51 PaiKe\PaiKe\bin\Debug\PaiKe.vshost.exe
文件 24576 2007-03-01 18:41 PaiKe\PaiKe\bin\Debug\PaiKe.exe
文件 26112 2007-03-01 18:41 PaiKe\PaiKe\bin\Debug\PaiKe.pdb
目录 0 2007-02-27 11:16 PaiKe\PaiKe\bin\Debug
目录 0 2007-02-27 11:16 PaiKe\PaiKe\bin
文件 24576 2007-03-01 18:41 PaiKe\PaiKe\obj\Debug\PaiKe.exe
文件 26112 2007-03-01 18:41 PaiKe\PaiKe\obj\Debug\PaiKe.pdb
目录 0 2007-02-27 11:16 PaiKe\PaiKe\obj\Debug\TempPE
目录 0 2007-02-27 11:37 PaiKe\PaiKe\obj\Debug\Refactor
目录 0 2007-02-27 11:16 PaiKe\PaiKe\obj\Debug
文件 126 2007-04-14 11:03 PaiKe\PaiKe\obj\PaiKe.csproj.FileList.txt
目录 0 2007-02-27 11:16 PaiKe\PaiKe\obj
文件 18998 2007-03-01 18:41 PaiKe\PaiKe\Program.cs
目录 0 2007-02-27 11:16 PaiKe\PaiKe
文件 1382 2007-02-27 21:42 PaiKe\PaiKe.sln
..A..H. 30208 2007-04-14 11:04 PaiKe\PaiKe.suo
文件 5612 2007-02-27 21:36 PaiKe\WinPaike\Properties\Resources.resx
文件 249 2007-02-27 21:36 PaiKe\WinPaike\Properties\Settings.settings
文件 1164 2007-02-27 21:36 PaiKe\WinPaike\Properties\AssemblyInfo.cs
文件 2870 2007-02-27 21:36 PaiKe\WinPaike\Properties\Resources.Designer.cs
文件 1091 2007-02-27 21:36 PaiKe\WinPaike\Properties\Settings.Designer.cs
目录 0 2007-02-27 21:36 PaiKe\WinPaike\Properties
文件 3290 2007-02-28 19:57 PaiKe\WinPaike\WinClass.cs
文件 1558 2007-03-01 19:26 PaiKe\WinPaike\WinPaiKe.cs
文件 5272 2007-04-14 11:02 PaiKe\WinPaike\WinPaike.csproj
文件 49152 2007-04-14 11:04 PaiKe\WinPaike\bin\Debug\WinPaike.exe
文件 112128 2007-04-14 11:04 PaiKe\WinPaike\bin\Debug\WinPaike.pdb
............此处省略53个文件信息
- 上一篇:C#超市管理系统 完善
- 下一篇:测试投屏.zip
相关资源
- 考试管理系统 - C#源码
- Asp.net学生信息管理系统源码
- C#实时网络流量监听源码
- C#百度地图源码
- Winform可视化打印模板设计工具含源码
- C#屏幕软键盘源码,可以自己定制界面
- C# 数据表(Dataset)操作 合并 查询一
- 数据库备份还原工具1.0 C# 源码
- c#记事本 完整版(附源码)
- C# pictureBox控件开打和另存为图像(附
- 逐步法线性回归C#源码
- 文本替换工具c#版附源码
- 连连看游戏C#源码有提示和洗牌功能
- C#版千千静听(附源码能)
- C#开发的OCR识别程序源码
- 一个很强大的C#第三方控件!!(附带
- C#实现在picturebox内画矩形,并将局部
- 班级管理系统(C#实现)
- c#在线考试系统(附源码)
- FtpClient 组件和源码(c#)
- C#开发实例大全(提高卷)源码
- 在线求职系统(C#ASP.NET源码)
- 酒店管理系统(c#.net源码)
- C#异构数据库转换工具源码
- c#编写的连连看程序
- C#使用剪切板粘贴数据
- C# TcpListener 例程(源码)
- C#实例程序100例子
- c# 委托、父窗体传值到子窗体DEMO,完
- C#打印条码源码
评论
共有 条评论