李虹霖

 

2015年3月2日

Game2048

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace SeqListSort{ /// /// ///... 阅读全文

posted @ 2015-03-02 01:27 lol霖 阅读(193) 评论(0) 推荐(0) 编辑

蛇形矩阵

摘要: #region 蛇形矩阵 static void SnakeMatrix() { // 我们把它看做是一个回矩阵 Console.WriteLine("请输入矩阵的行数"); int n = Convert... 阅读全文

posted @ 2015-03-02 01:25 lol霖 阅读(462) 评论(0) 推荐(0) 编辑

约瑟夫环

摘要: #region 约瑟夫环 static void SuesfuRing() { Console.WriteLine("请输入几个人"); int n = Convert.ToInt32(Console.ReadLine());... 阅读全文

posted @ 2015-03-02 01:24 lol霖 阅读(261) 评论(0) 推荐(0) 编辑

二分法查找

摘要: #region 二分法查找 static void InitBinData() { const int n = 20; int[] a = new int[n]; Random r = new Random... 阅读全文

posted @ 2015-03-02 01:22 lol霖 阅读(335) 评论(0) 推荐(0) 编辑

动态规划之防卫导弹

摘要: /* 防卫导弹 一种新型的防卫导弹可截击多个攻击导弹。它可以向前飞行,也可以用很快的速度向下飞行,可以毫无损伤地 * 截击进攻导弹,但不可以向后或向上飞行。但有一个缺点,尽管它发射时可以达到任意高度, * 但它只能截击比它上次截击导弹时... 阅读全文

posted @ 2015-03-02 01:20 lol霖 阅读(569) 评论(0) 推荐(0) 编辑

动态规划之0-1背包问题

摘要: namespace SeqListSort{ /// /// /// 有n件物品和一个容量为m的背包。第i件物品的价值是v[i],重量是w[i]。求解将哪些物品装入 /// 背包可使价值总和最大 /// 动态规划中最最最重要的两个概念: 状态和状态转移方程在这个问题... 阅读全文

posted @ 2015-03-02 01:18 lol霖 阅读(225) 评论(0) 推荐(0) 编辑

回溯算法之火力网

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SeqListSort{ /// /// /// lihonglin /// /... 阅读全文

posted @ 2015-03-02 01:15 lol霖 阅读(282) 评论(0) 推荐(0) 编辑

回溯算法之8皇后问题

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SeqListSort{ /// /// 8皇后算法 /// /// /// ... 阅读全文

posted @ 2015-03-02 01:14 lol霖 阅读(207) 评论(0) 推荐(0) 编辑

回溯算法之素数环

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SeqListSort{ /// /// /// lihonglin /// /... 阅读全文

posted @ 2015-03-02 01:13 lol霖 阅读(645) 评论(0) 推荐(0) 编辑

回溯算法之迷宫问题

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SeqListSort{ /// /// /// /// /// //... 阅读全文

posted @ 2015-03-02 01:11 lol霖 阅读(254) 评论(0) 推荐(0) 编辑

回溯算法之0-1背包问题

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SeqListSort{ /// /// /// lihonglin /// /... 阅读全文

posted @ 2015-03-02 01:10 lol霖 阅读(1638) 评论(0) 推荐(0) 编辑

导航