c#排列组合算法

2023-10-27

Combinatorics.cs代码清单
 
using System;
using System.Collections;
using System.Data;
 
     /// <summary>
     /// 组合数学函数集
     /// </summary>
     public class Combinatorics
     {        
         #region 公共函数
 
         
         /// <summary>
         /// 把二维整形数组转换为数据表
         /// </summary>
         public static DataTable TwoDemisionIntArrayToDataTable(int[, ]source)
         {
              DataTable dt = new DataTable();
              DataRow dr;
              int i, j;
         
              int b1 = source.GetUpperBound(0), b2 = source.GetUpperBound(1);                //获取二维表的各维长度                         
 
              for (i = 0; i <= b1; i ++ )                                                         //以第二维长度创建数据表的各字段
                   dt.Columns.Add(i.ToString(), System.Type.GetType("System.Int32"));
 
              for (i = 0; i <= b2; i ++ )                                                         //对各返回排列循环
              {
                   dr = dt.NewRow();                                                              //准备插入新行
                   for (j = 0; j <= b1; j ++ )                                                    //在新行中逐个填入返回排列的各元素次序                
                       dr[j.ToString()] = source[j, i];                                      //用序数指针获取原元素的值
                   dt.Rows.Add(dr);                                                               //插入新行
              }
 
              return dt;
         }    
 
         /// <summary>
         /// 连乘积函数         
         /// </summary>
         public static int Product(int start, int finish)
         {
              int factorial = 1;
              for (int i = start; i <= finish; i ++ )
                   factorial *= i;
              return factorial;
         }                  
 
         /// <summary>
         /// 阶乘函数       
         /// </summary>
         public static int Factorial(int n)
         {
              return Product(2, n);
         }                           
 
         /// <summary>
         /// 排列数函数         
         /// </summary>
         public static int ArrangeCount(int m, int n)
         {
              return Product(n - m + 1, n);        
         }
         
         /// <summary>
         /// 生成排列表函数     
         /// </summary>
         public static int[, ]Arrange(int m, int n)
         {
              int A = ArrangeCount(m, n);               //求得排列数,安排返回数组的第一维
              int[, ]arrange = new int[m, A];           //定义返回数组
              ArrayList e = new ArrayList();            //设置元素表
              for (int i = 0; i < n; i ++ )
                   e.Add(i + 1);
              Arrange(ref arrange, e, m, 0, 0);
              return arrange;
         }
 
         /// <summary>
         /// 组合数函数         
         /// </summary>
         public static int CombinationCount(int m, int n)
         {
              int a = Product(n - m + 1, n), b = Product(2, m);       //a=n-m+1 * ... * n ; b = m!
              return (int) a/b;                                            //c=a/b                              
         }
 
         /// <summary>
         /// 生成组合表函数     
         /// </summary>
         public static int[, ]Combination(int m, int n)
         {
              int A = CombinationCount(m, n);                //求得排列数,安排返回数组的第一维
              int[, ]combination = new int[m, A];            //定义返回数组
              ArrayList e = new ArrayList();                 //设置元素表
              for (int i = 0; i < n; i ++ )
                   e.Add(i + 1);
              Combination(ref combination, e, m, 0, 0);
              return combination;
         }
         
 
         #endregion
         
         #region 内部核心
 
         /// <summary>
         /// 排列函数
         /// </summary>
         /// <param name="reslut">返回值数组</param>
         /// <param name="elements">可供选择的元素数组</param>
         ///  <param name="m">目标选定元素个数</param>           
         /// <param name="x">当前返回值数组的列坐标</param>
         /// <param name="y">当前返回值数组的行坐标</param>
         private static void Arrange(ref int[, ]reslut, ArrayList elements, int m, int x, int y)
         {             
              int sub = ArrangeCount(m - 1, elements.Count - 1);                    //求取当前子排列的个数
              for (int i = 0; i < elements.Count; i++, y += sub)                    //每个元素均循环一次,每次循环后移动行指针
              {                  
                  int val = RemoveAndWrite(elements, i, ref reslut, x, y, sub);                                                                                    
                   if (m > 1)                                                                 //递归条件为子排列数大于1
                       Arrange(ref reslut, elements, m - 1, x + 1, y);
                   elements.Insert(i, val);                                              //恢复刚才删除的元素                  
              }
         }
         
         /// <summary>
         /// 组合函数
         /// </summary>
         /// <param name="reslut">返回值数组</param>
         /// <param name="elements">可供选择的元素数组</param>
         ///  <param name="m">目标选定元素个数</param>           
         /// <param name="x">当前返回值数组的列坐标</param>
         /// <param name="y">当前返回值数组的行坐标</param>
         private static void Combination(ref int[, ]reslut, ArrayList elements, int m, int x, int y)
         {             
              ArrayList tmpElements = new ArrayList();                              //所有本循环使用的元素都将暂时存放在这个数组
              int elementsCount = elements.Count;                                        //先记录可选元素个数
              int sub;
              for (int i = elementsCount - 1; i >= m - 1; i--, y += sub)            //从elementsCount-1(即n-1)到m-1的循环,每次循环后移动行指针
              {
                   sub = CombinationCount(m-1,i);                                   //求取当前子组合的个数
                   int val = RemoveAndWrite(elements, 0, ref reslut, x, y, sub);                                                                 
                   tmpElements.Add(val);                                                 //把这个可选元素存放到临时数组,循环结束后一并恢复到elements数组中                 
                   if (sub > 1 || (elements.Count + 1 == m && elements.Count > 0))  //递归条件为 子组合数大于1 或 可选元素个数+1等于当前目标选择元素个数且可选元素个数大于1
                       Combination(ref reslut, elements, m - 1, x + 1, y);                                 
              }
              elements.InsertRange(0, tmpElements);                                 //一次性把上述循环删除的可选元素恢复到可选元素数组中           
         }
 
         /// <summary>
         /// 返回由Index指定的可选元素值,并在数组中删除之,再从y行开始在x列中连续写入subComb个值
         /// </summary>
         private static int RemoveAndWrite(ArrayList elements, int index, ref int[, ]reslut, int x, int y, int count)
         {
              int val = (int) elements[index];
              elements.RemoveAt(index);
              for (int i = 0; i < count; i ++ )
                   reslut[x, y + i] = val;              
              return val;
         }        
         
         #endregion 
     }
 
 
 
 
测试窗体frmTest.cs代码清单: 
 
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
 
namespace CombinatoricsLib
{
     /// <summary>
     /// Form1 的摘要说明。
     /// </summary>
     public class frmTest : System.Windows.Forms.Form
     {
         private System.Windows.Forms.DataGrid gridShow;
         private System.Windows.Forms.NumericUpDown numM;
         private System.Windows.Forms.Button btnGo;
         private System.Windows.Forms.DomainUpDown domainFunction;
         private System.Windows.Forms.StatusBar statusBar1;
         private System.Windows.Forms.StatusBarPanel panelErrMsg;
         private System.Windows.Forms.NumericUpDown numN;
         /// <summary>
         /// 必需的设计器变量。
         /// </summary>
         private System.ComponentModel.Container components = null;
 
         public frmTest()
         {
              //
              // Windows 窗体设计器支持所必需的
              //
              InitializeComponent();
 
              //
              // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
              //
         }
 
         /// <summary>
         /// 清理所有正在使用的资源。
         /// </summary>
         protected override void Dispose( bool disposing )
         {
              if( disposing )
              {
                   if (components != null) 
                   {
                       components.Dispose();
                   }
              }
              base.Dispose( disposing );
         }
 
         #region Windows 窗体设计器生成的代码
         /// <summary>
         /// 设计器支持所需的方法 - 不要使用代码编辑器修改
         /// 此方法的内容。
         /// </summary>
         private void InitializeComponent()
         {
              this.gridShow = new System.Windows.Forms.DataGrid();
              this.domainFunction = new System.Windows.Forms.DomainUpDown();
              this.numM = new System.Windows.Forms.NumericUpDown();
              this.numN = new System.Windows.Forms.NumericUpDown();
              this.btnGo = new System.Windows.Forms.Button();
              this.statusBar1 = new System.Windows.Forms.StatusBar();
              this.panelErrMsg = new System.Windows.Forms.StatusBarPanel();
              ((System.ComponentModel.ISupportInitialize)(this.gridShow)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.numM)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.numN)).BeginInit();
              ((System.ComponentModel.ISupportInitialize)(this.panelErrMsg)).BeginInit();
              this.SuspendLayout();
              // 
              // gridShow
              // 
              this.gridShow.AlternatingBackColor = System.Drawing.Color.Lavender;
              this.gridShow.BackColor = System.Drawing.Color.WhiteSmoke;
              this.gridShow.BackgroundColor = System.Drawing.Color.LightGray;
              this.gridShow.BorderStyle = System.Windows.Forms.BorderStyle.None;
              this.gridShow.CaptionBackColor = System.Drawing.Color.LightSteelBlue;
              this.gridShow.CaptionForeColor = System.Drawing.Color.MidnightBlue;
              this.gridShow.DataMember = "";
              this.gridShow.FlatMode = true;
              this.gridShow.Font = new System.Drawing.Font("Tahoma", 8F);
              this.gridShow.ForeColor = System.Drawing.Color.MidnightBlue;
              this.gridShow.GridLineColor = System.Drawing.Color.Gainsboro;
              this.gridShow.GridLineStyle = System.Windows.Forms.DataGridLineStyle.None;
              this.gridShow.HeaderBackColor = System.Drawing.Color.MidnightBlue;
              this.gridShow.HeaderFont = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Bold);
              this.gridShow.HeaderForeColor = System.Drawing.Color.WhiteSmoke;
              this.gridShow.LinkColor = System.Drawing.Color.Teal;
              this.gridShow.Location = new System.Drawing.Point(24, 88);
              this.gridShow.Name = "gridShow";
              this.gridShow.ParentRowsBackColor = System.Drawing.Color.Gainsboro;
              this.gridShow.ParentRowsForeColor = System.Drawing.Color.MidnightBlue;
              this.gridShow.ReadOnly = true;
              this.gridShow.SelectionBackColor = System.Drawing.Color.CadetBlue;
              this.gridShow.SelectionForeColor = System.Drawing.Color.WhiteSmoke;
              this.gridShow.Size = new System.Drawing.Size(648, 344);
              this.gridShow.TabIndex = 0;
              // 
              // domainFunction
              // 
              this.domainFunction.BackColor = System.Drawing.SystemColors.Info;
              this.domainFunction.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
              this.domainFunction.ForeColor = System.Drawing.Color.Teal;
              this.domainFunction.Items.Add("C");
              this.domainFunction.Items.Add("A");
              this.domainFunction.Location = new System.Drawing.Point(24, 8);
              this.domainFunction.Name = "domainFunction";
              this.domainFunction.ReadOnly = true;
              this.domainFunction.Size = new System.Drawing.Size(48, 62);
              this.domainFunction.TabIndex = 1;
              this.domainFunction.Text = "C";
              // 
              // numM
              // 
              this.numM.BackColor = System.Drawing.Color.PeachPuff;
              this.numM.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
              this.numM.ForeColor = System.Drawing.Color.Teal;
              this.numM.Location = new System.Drawing.Point(80, 8);
              this.numM.Maximum = new System.Decimal(new int[] {
                                                                            20,
                                                                            0,
                                                                            0,
                                                                            0});
              this.numM.Minimum = new System.Decimal(new int[] {
                                                                            1,
                                                                            0,
                                                                            0,
                                                                            0});
              this.numM.Name = "numM";
              this.numM.Size = new System.Drawing.Size(56, 26);
              this.numM.TabIndex = 4;
              this.numM.Value = new System.Decimal(new int[] {
                                                                         2,
                                                                         0,
                                                                         0,
                                                                         0});
              // 
              // numN
              // 
              this.numN.BackColor = System.Drawing.Color.Bisque;
              this.numN.Font = new System.Drawing.Font("宋体", 12F);
              this.numN.ForeColor = System.Drawing.Color.Teal;
              this.numN.Location = new System.Drawing.Point(80, 40);
              this.numN.Maximum = new System.Decimal(new int[] {
                                                                            25,
                                                                            0,
                                                                            0,
                                                                            0});
              this.numN.Minimum = new System.Decimal(new int[] {
                                                                            1,
                                                                            0,
                                                                            0,
                                                                            0});
              this.numN.Name = "numN";
              this.numN.Size = new System.Drawing.Size(56, 26);
              this.numN.TabIndex = 5;
              this.numN.Value = new System.Decimal(new int[] {
                                                                         4,
                                                                         0,
                                                                         0,
                                                                         0});
              // 
              // btnGo
              // 
              this.btnGo.BackColor = System.Drawing.Color.PaleTurquoise;
              this.btnGo.Location = new System.Drawing.Point(184, 24);
              this.btnGo.Name = "btnGo";
              this.btnGo.Size = new System.Drawing.Size(88, 32);
              this.btnGo.TabIndex = 6;
              this.btnGo.Text = "Go!";
              this.btnGo.Click += new System.EventHandler(this.btnGo_Click);
              // 
              // statusBar1
              // 
              this.statusBar1.Location = new System.Drawing.Point(0, 453);
              this.statusBar1.Name = "statusBar1";
              this.statusBar1.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
                                                                                                         this.panelErrMsg});
              this.statusBar1.ShowPanels = true;
              this.statusBar1.Size = new System.Drawing.Size(704, 32);
              this.statusBar1.TabIndex = 7;
              this.statusBar1.Text = "statusBar1";
              // 
              // panelErrMsg
              // 
              this.panelErrMsg.AutoSize = System.Windows.Forms.StatusBarPanelAutoSize.Contents;
              this.panelErrMsg.Text = "Idle";
              this.panelErrMsg.Width = 39;
              // 
              // frmTest
              // 
              this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
              this.ClientSize = new System.Drawing.Size(704, 485);
              this.Controls.Add(this.statusBar1);
              this.Controls.Add(this.btnGo);
              this.Controls.Add(this.numN);
              this.Controls.Add(this.numM);
              this.Controls.Add(this.domainFunction);
              this.Controls.Add(this.gridShow);
              this.MaximizeBox = false;
              this.Name = "frmTest";
              this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
              this.Text = "frmTest";
              ((System.ComponentModel.ISupportInitialize)(this.gridShow)).EndInit();
              ((System.ComponentModel.ISupportInitialize)(this.numM)).EndInit();
              ((System.ComponentModel.ISupportInitialize)(this.numN)).EndInit();
              ((System.ComponentModel.ISupportInitialize)(this.panelErrMsg)).EndInit();
              this.ResumeLayout(false);
 
         }
         #endregion
 
         /// <summary>
         /// 应用程序的主入口点。
         /// </summary>
         [STAThread]
         static void Main() 
         {
              Application.Run(new frmTest());
         }
 
         private void btnGo_Click(object sender, System.EventArgs e)
         {
              int[, ]reslut;
              int m = (int)numM.Value, n = (int)numN.Value;
              
              if (m <= n)
              {
                   panelErrMsg.Text = "Running...";
                   if (domainFunction.Text == "A")                
                       reslut = Combinatorics.Arrange(m, n);
                   else
                       reslut = Combinatorics.Combination(m, n);                        
                   panelErrMsg.Text = "Showing...";
                   gridShow.DataSource = Combinatorics.TwoDemisionIntArrayToDataTable(reslut);
                   panelErrMsg.Text = "Idle";
              }
              else          
                   panelErrMsg.Text = "Input number is invalid";
         }
     }
}
<a hre="http://www.v5v6s.com">百度影音资源</a>
 
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

c#排列组合算法 的相关文章

  • 在c++中定义一堆静态方法

    哪个是合适的 class xyz static int xyzOp1 static int xyzOp2 OR namespace xyz static int xyzOp1 static int xyzOp2 当我们使用类标签与命名空间标
  • 从服务器下载图像(cUrl,但接受建议)C++

    我试图通过从服务器 网站 下载图像来设置旋转背景图像 并尝试使用curl 来执行此操作 但是在执行此操作方面取得了0 成功 我的代码的 缩短的 版本如下 我没有收到错误 但是 如何 临时 保存该图像以将其显示为背景 是否有图像 类型变量 或
  • C++ STL 映射,std::pair 作为键

    这就是我通过地图定义的方式 std map
  • 处理器关联组 C#

    我使用的是 72 核的 Windows Server 2016 我看到有两组处理器 我的 net 应用程序将使用一个或其他组 我需要能够强制我的应用程序使用我选择的组 我看到下面的代码示例 但我无法使其工作 我可能传递了错误的变量 我希望应
  • 如何配置 Ninject 来注入 NodaTime IClock

    在我的 NinjectConfigurator 中我有 container Bind
  • 如何在 ASP.NET MVC 中处理会话数据

    假设我想存储一个名为language id在会议中 我想我也许可以做如下的事情 public class CountryController Controller WebMethod EnableSession true AcceptVer
  • 为什么 xcode IDE 认为 `friend` 是保留字

    我一直在开发一个个人项目 并在我创建的新类中包含以下代码 property readonly getter isFriend BOOL friend 它似乎没有任何问题 当我构建它时 它可以编译得很好 但是当我们在xcode IDE看起来像
  • C++:避免​​在重载中将字符串自动转换为布尔值

    我想创建一组方法 这些方法将根据其类型输出具有特殊格式的值 当我这样做时 到目前为止看起来还不错 static void printValue std ostringstream out int value out lt lt value
  • 我应该使用字节还是int?

    我记得曾在某处读到 即使您只需要字节 使用 Int32 更好 就性能而言 它 据说 仅适用于您不关心存储的情况 这是有效的吗 例如 我需要一个保存一周中某一天的变量 我是吗 int dayOfWeek or byte dayOfWeek E
  • 我想找到 C# 代码中所有后面没有括号的 if 语句。通过正则表达式

    我想找到所有if声明和for后面没有大括号的语句 当你在一个文件中写入一行时if声明您大多不会将其括在大括号中 所以我想找到所有这些if and for声明 请帮忙 就像我想捕捉这个声明 if childNode Name B return
  • C 编程中的 rand() 问题? [复制]

    这个问题在这里已经有答案了 可能的重复 为什么我总是用 rand 得到相同的随机数序列 https stackoverflow com questions 1108780 why do i always get the same seque
  • 大小为 k 的非连续子序列的最大值的最小值

    在开始之前 我希望这个问题不是重复的 我发现了几个类似的问题 但它们似乎都没有描述完全相同的问题 但如果它是重复的 我会很高兴看到一个解决方案 即使它与我的算法不同 我一直在尝试回答这个问题 https stackoverflow com
  • 对象变空似乎是 Hangfire 中的反序列化问题

    Hangfire 似乎无法反序列化我的原始版本Scheduler对象及其所有状态 我正在调用其 Execute 方法BackgroundJob Enqueue 如下所示 Scheduler new FileInFileOut FileIn
  • 向客户端发送状态码 500 时页面未呈现

    我有一个页面 通用处理程序 我想在该页面上向客户端返回状态代码 500 以指示出现问题 我这样做 Response StatusCode 500 Response StatusDescription Internal Server Erro
  • 对列表中的一系列整数求和

    假设我有一个这样的列表 List
  • 批量插入,asp.net

    我需要获取与会员相对应的 ID 号列表 在任何给定时间处理的数量可能在 10 到 10 000 之间 我可以毫无问题地收集数据 解析数据并将其加载到 DataTable 或任何内容 C 中 但我想在数据库中执行一些操作 将所有这些数据插入表
  • 使用属性和性能

    我正在优化我的代码 我注意到使用属性 甚至自动属性 对执行时间有深远的影响 请参阅下面的示例 Test public void GetterVsField PropertyTest propertyTest new PropertyTest
  • 将二进制长字符串转换为十六进制 C#

    我正在寻找一种将长二进制字符串转换为十六进制字符串的方法 二进制字符串看起来像这样 0110011010010111001001110101011100110100001101101000011001010110001101101011 我
  • 在派生类中访问基类变量

    class Program static void Main string args baseClass obj new baseClass obj intF 5 obj intS 4 child obj1 new child Consol
  • 获取线段上最接近另一个点的点[关闭]

    Closed 这个问题需要调试细节 help minimal reproducible example 目前不接受答案 我想找到线段AB上最接近另一个点P的点 我的想法是 Get a1 and b1由直线公式y1 a1x b1 使用 A 点

随机推荐

  • GD32F303调试小记(十)之LVGL移植(FreeRTOS)

    一 前言 在上文中 我们成功的移植进了FreeRTOS 接下来我们在此基础上 移入我们的LVGL图形界面库 二 LVGL 一款用于绘制界面UI的开源库 让硬件资源更少的MCU跑出显示效果理想的界面 实际效果可以参考官方或者视频网站上开发者公
  • 【文末送书】2023年以就业为目的学习Java还有必要吗?

    前言 作者主页 雪碧有白泡泡 个人网站 雪碧的个人网站 推荐专栏 java一站式服务 React从入门到精通 前端炫酷代码分享 从0到英雄 vue成神之路 uniapp 从构建到提升 从0到英雄 vue成神之路 解决算法 一个专栏就够了 架
  • Window10安装TensorFlow(GPU)与可行性测试

    2017 11 9遇到坑了 安装成功但是import tensorflow出错正在排查原因 因为在VM的Ubuntu上貌似对GPU支持不怎么好 使用体验不佳 现在尝试直接在Windows10上使用anaconda和pip安装tensorfl
  • view, Window,Activity等概念的比较分析

    1 View 最基本的UI组件 表示屏幕上的一个矩形区域 2 Window 表示一个窗口 不一定有屏幕那么大 可以很大也可以很小 它包含一个View tree和窗口的layout 参数 View tree的root View可以通过getD
  • 数据结构 单链表1

    头文件
  • Kcov - gcov, lcov and bcov

    Short version Kcov a new project of mine for code coverage testing When developing software I ve often found measuring c
  • Vue实现验证码

    在Web应用程序中 为了避免机器自动化或恶意攻击 很常见的做法是要求用户在表单提交之前输入验证码 验证码最常见的形式是图片验证码 因为图片验证码最大程度地防止了自动化机器调用API来执行攻击 使人类用户输入不是人类难以识别的形式 比如文本和
  • 数据结构的常用八种排序算法

    概述 排序有内部排序和外部排序 内部排序是数据记录在内存中进行排序 而外部排序是因排序的数据很大 一次不能容纳全部的排序记录 在排序过程中需要访问外存 我们这里说说八大排序就是内部排序 当n较大 则应采用时间复杂度为O nlog2n 的排序
  • 活动安排问题-贪心算法

    在时间段内选择尽可能多的活动 0 14 include
  • python-10

    纯函数实现面向对象 人狗大战 游戏人狗大战 人 角色 属性 名称 等级 血量 攻击力 性别 职业 zhangsan name zhangsan level 1 hp 100 ad 20 sex 男 职业 魔法师 def person nam
  • QString和std::string相互转换

    QString和std string相互转换 使用下面的函数 toStdString gt 将QString转换成std string QString toStdString fromStdString gt 将std string转换成Q
  • Docker数据目录(/var/lib/docker)迁移

    本文介绍Linux上如何安全的迁移Docker的数据目录 var lib docker 为什么要迁移 虚拟机创建时 一般分配一个比较小的系统盘 然后挂载一个大容量的数据盘 docker默认情况下数据存储在系统盘 var lib docker
  • 捕获线程执行异常

    在 Thread 类中 可以获取线程运行时异常的 API 总共有四个 public void setUncaughtExceptionHandler UncaughtExceptionHandler eh 为某个特定线程指定 Uncaugh
  • hibernate注解

    现在EJB3实体Bean是纯粹的POJO 实际上表达了和Hibernate持久化实体对象同样的概念 他们的映射都通过JDK5 0注释来定义 EJB3规范中的XML描述语法至今还没有定下来 注释分为两个部分 分别是逻辑映射注释和物理映射注释
  • 目标检测一阶段和二阶段对比图

    图片来源
  • 『学Vue2+Vue3』认识Vue3

    认识Vue3 1 Vue2 选项式 API vs Vue3 组合式API 特点 代码量变少 分散式维护变成集中
  • Linux下安装jre

    Linux下安装Java运行环境 现需要项目部署到Linux中 需要配置java运行环境 注 以下测试环境系统为centOS 用户为超级管理员 jre8 1 下载最新版的jre 服务器环境下不需要配置jdk 下载地址如下 http www
  • microsoft visual c++ 6.0中文版两种使用方法

    microsoft visual c 6 0 是一款语言编程软件 那么很多人都不知道microsoft visual c 6 0中文版怎么使用 其实使用方法很简单哦 只要打开microsoft visual c 6 0中文版就可以进行语言编
  • 《数据结构》 图的创建与遍历 代码表示

    测试数据 10 15 共10个顶点 15条边 0 1 0 8 0 0 第一 二个数表示连接两个顶点的起始顶点 第三个数1表示单通行 0表示双向通行 4 8 1 5 4 0 5 9 1 0 6 0 7 3 1 8 3 1 2 5 0 2 1
  • c#排列组合算法

    Combinatorics cs代码清单 using System using System Collections using System Data