当前位置: 首页 > news >正文

建设网站的功能定位是什么原因土木工程网官网首页

建设网站的功能定位是什么原因,土木工程网官网首页,搜索引擎和门户网站的区别,快手网页版归并排序 归并算法采用非常经典的分治策略#xff0c;每次把序列分成n/2的长度#xff0c;将问题分解成小问题#xff0c;由复杂变简单。 因为使用了递归算法#xff0c;不能用于大数据的排序。 核心代码#xff1a; using System; using System.Text; using System.Co…归并排序 归并算法采用非常经典的分治策略每次把序列分成n/2的长度将问题分解成小问题由复杂变简单。 因为使用了递归算法不能用于大数据的排序。 核心代码 using System; using System.Text; using System.Collections.Generic; using System.Windows.Forms; namespace WindowsFormsApp6 {     public partial class Form1 : Form     {         Random rnd new Random((int)DateTime.Now.Ticks);         Liststring slides new Liststring(); public Form1()         {             InitializeComponent();             BrowserReleaseHelper.SetWebBrowserFeatures(11);         } private void Form1_Load(object sender, EventArgs e)         {             this.Text C#四种常见排序算法的可视化编程——北京联高软件开发有限公司;             button1.Text 选择排序; button1.Cursor Cursors.Hand;             button2.Text 冒泡排序; button2.Cursor Cursors.Hand;             button3.Text 插入排序; button3.Cursor Cursors.Hand;             button4.Text 快速(递归); button4.Cursor Cursors.Hand;             button5.Text 快速(非递归); button5.Cursor Cursors.Hand;             button6.Text 归并排序; button6.Cursor Cursors.Hand;             panel1.Dock DockStyle.Top;             panel2.Dock DockStyle.Fill;             webBrowser1.Navigate(http://www.315soft.com);         } private int[] RandArray()         {             int n 20;             int[] dataArray new int[n];             for (int i 0; i n; i)             {                 dataArray[i] rnd.Next(20, 100);             }             return dataArray;         } private void button6_Click(object sender, EventArgs e)         {             int[] arraySource RandArray();             int[] arrayTemplate new int[arraySource.Length];             MergeSort(0, arraySource.Length - 1, ref arraySource, ref arrayTemplate); loop 0;             timer1.Interval 100;             timer1.Enabled true;         } /// summary         /// 归并排序算法         /// /summary         /// param nameleft/param         /// param nameright/param         /// param namearraySource/param         /// param namearrayTemplate/param         private void MergeSort(int left, int right, ref int[] arraySource, ref int[] arrayTemplate)         {             if (left right)             {                 return;             }             int mid (left right) 1;             MergeSort(left, mid, ref arraySource, ref arrayTemplate);             MergeSort(mid 1, right, ref arraySource, ref arrayTemplate);             int head_left left;             int head_right mid 1;             int tmp_index left;             while (head_left mid head_right right)             {                 if (arraySource[head_left] arraySource[head_right])                 {                     arrayTemplate[tmp_index] arraySource[head_left];                 }                 else                 {                     arrayTemplate[tmp_index] arraySource[head_right];                 }             }             while (head_left mid)             {                 arrayTemplate[tmp_index] arraySource[head_left];             }             while (head_right right)             {                 arrayTemplate[tmp_index] arraySource[head_right];             }             for (int i left; i right; i)             {                 arraySource[i] arrayTemplate[i];             } slides.Add(Slide(button6.Text, arraySource, left, right));         } private string Slide(string title, int[] dataArray, int a, int b)         {             StringBuilder sb new StringBuilder();             sb.AppendLine(!DOCTYPE html PUBLIC \-//W3C//DTD XHTML 1.0 Transitional//EN\ \http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\);             sb.AppendLine(html xmlns\http://www.w3.org/1999/xhtml\ );             sb.AppendLine(head);             sb.AppendLine(style);             sb.AppendLine(td { vertical-align:bottom;text-align:center;font-size:12px; } );             sb.AppendLine(.bar { width: (int)((webBrowser1.Width - dataArray.Length * 11) / dataArray.Length) px;font-size:12px;border:solid 1px #FF6701;background-color:#F08080;text-align:center;border-radius:3px; });             sb.AppendLine(/style);             sb.AppendLine(/head);             sb.AppendLine(body);             sb.AppendLine(table width100% styleborder-bottom:solid 1px #E9E9E0;);             sb.AppendLine(tr);             sb.AppendLine(td方法 title /td);             sb.AppendLine(td数据 dataArray.Length /td);             sb.AppendLine(td步骤[0]/td);             sb.AppendLine(/tr);             sb.AppendLine(/table);             sb.AppendLine(br);             sb.AppendLine(table width100% styleborder-bottom:solid 15px #E9E9E0;);             sb.AppendLine(tr);             for (int i 0; i dataArray.Length; i)             {                 if (i a || i b)                 {                     sb.AppendLine(td dataArray[i] div classbar styleheight: dataArray[i] * 3 px;background-color:#993333;/div/td);                 }                 else                 {                     sb.AppendLine(td dataArray[i] div classbar styleheight: dataArray[i] * 3 px;/div/td);                 }             } sb.AppendLine(/tr);             sb.AppendLine(/table);             sb.AppendLine(/body);             sb.AppendLine(/html);             return sb.ToString();         } int loop 0; private void timer1_Tick(object sender, EventArgs e)         {             if (loop slides.Count (3000 / timer1.Interval))             {                 if (loop slides.Count)                 {                     webBrowser1.DocumentText slides[loop].Replace([0], loop / slides.Count);                     loop;                     return;                 }                 loop;                 return;             }             loop 0;         }     } }   —————————————————————— POWER BY 315SOFT.COM TRUFFER.CN
http://www.hkea.cn/news/14271984/

相关文章:

  • 简述网站开发的基本原则制作微信网站模板下载不了
  • 青岛通力建设集团网站建立网站商城建议
  • 响应式网站设计优点专业站
  • 在线做漫画的网站好wordpress更改mysqli
  • 临沂网站建设价格低工作细胞第一季免费
  • 营销网站建设hanyous怎么把自己的网站放到百度搜索上
  • 汽车商城网站模板免费下载百度没有收录网站
  • 北京中国建设部网站首页传奇手游新开网站
  • 惠州惠阳网站建设微信怎么建设网站
  • 电子商务网站建设的流程郑州建设网站企业定制
  • wap网站开发流程泰安网站建设广告
  • 如何做企业网站规划群晖 wordpress加载慢
  • 郑州建网站哪家好怎么样在服务器上建设网站
  • 网站建设与管理维护的答案李建青开发一款社交软件需要多少钱
  • 吴江市中云建设监理有限公司网站wordpress文章分类跳转到指定模板
  • 关键词挖掘工具站设计公司 网站
  • 最便宜的购物网站排名上海网站建设推广服务
  • 三河建设厅网站注册安全工程师报名条件和要求
  • 做视频分享网站网站的建设
  • 俄文网站引擎大连网站搜索排名提升
  • 关于 建设 二级网站视频付费网站建设
  • 网站建设多选题百度文库企业所得税怎样计算
  • 网站服务器证书有问题网站的页脚什么做
  • 湖北省建设工程网站公司网站建设怎么弄
  • 内涵吧网站重庆哪家公司做网站好
  • 网站建设玖金手指谷哥十本地网站有什么可以做
  • 低调与华丽wordpress模seo营销策划
  • 响应式网站需要的技术交友营销型网站
  • 网站实名认证功能怎么做大型网站系统解决方案
  • 辽阳网站设计wordpress迁站到阿里云