登录
首页 » 算法 » 一个acm算法题目 问题描述: 有一个黑盒子,可视为一个15×10的二维矩阵,里面有一些空隙,在二维矩阵中用0表示空隙,用1表示被占有。现有一个仪器,可以从4个...

一个acm算法题目 问题描述: 有一个黑盒子,可视为一个15×10的二维矩阵,里面有一些空隙,在二维矩阵中用0表示空隙,用1表示被占有。现有一个仪器,可以从4个...

于 2022-07-08 发布 文件大小:4.97 kB
0 192
下载积分: 2 下载次数: 1

代码说明:

一个acm算法题目 问题描述: 有一个黑盒子,可视为一个15×10的二维矩阵,里面有一些空隙,在二维矩阵中用0表示空隙,用1表示被占有。现有一个仪器,可以从4个方向对盒子进行分行透视:从左到右,从左下到右上,从下到上,从右下到左上。透视可得到该二维矩阵的该行1的个数。要求,还原此矩阵。 输入:4行,每一行分别代表从左到右,从左下到右上,从下到上,从右下到左上透视所得的数据 输出:该矩阵 使用的方法是回溯法,具体见程序-a acm algorithm topic Problem description : a black box, as a 15 x 10 two-dimensional matrix, there are some gaps in two-dimensional matrix using 0 indicates the gap, with a show that occupies. An existing equipment, from the direction of four branches box for perspective : from left to right, from the lower left to upper right, from bottom to top, from the lower right to upper left. Perspective availability of the two-dimensional matrix of the line a number. Demand reduction of this matrix. Input : 4 firms on behalf of every line from left to right, from the lower left to upper right, from bottom to top, from the upper left to lower right perspective on data obtained from the output : the matrix method is the use of backtracking, see the specific procedures

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 格子Boltzmann方模拟不稳定绕柱流
    采用格子Boltzmann方法模拟不稳定绕柱流的情况,在固体边界出采用反弹格式进行处理
    2022-05-25 19:48:19下载
    积分:1
  • logistic 混沌扰动
    数学中的混沌扰动仿真,其中的参数可以任意修改,参数的不同,混沌的效果也不同,这种混沌扰动可以应用到算法改进和扩大多样性中去,改程序经过测试,可以直接运行,上面的图片就是仿真结果,这个程序是我之前看的一篇文献当中的,拿下来学习一下,曾改进过算法,有很好的效果,希望能帮到大家。
    2022-01-31 19:09:49下载
    积分:1
  • java外部排序与内存排序
    生成一个具有10,000,000个记录的文本文件,其中每个记录由100个字节组成。实验只考虑记录的一个属性A,假定A为整数类型。记录在block上封装时,采用non-spanned方式,即块上小于一个记录的空间不使用。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-01 01:23:44下载
    积分:1
  • 遥感影像重采样
    应用背景应用于遥感影像的重采样,可以重采样成各种你所需要的分辨率的影像。如30m分辨率的遥感影像,可以重采样成3km,也可以重采样成10m分辨率的影像。关键技术利用GDAL进行编写的,支持最邻近,双线性内插法,三次卷积法,均值法,B样条等重采样算法,具体参见gdalwraper.h。
    2022-02-04 11:02:02下载
    积分:1
  • A fluid numerical simulation program to simulate the air or from a drilling camp...
    一个流体数值模拟程序,模拟空中或从一个钻孔运动中筛选不饱和区。三维空气流动的异常,各向异性饱和带空气流通。-A fluid numerical simulation program to simulate the air or from a drilling campaign in the filter is not saturated zone. The abnormal three-dimensional air flow, anisotropy saturated with air circulation.
    2022-10-25 20:10:03下载
    积分:1
  • 3D Delaunay
    此程序计算凸壳、 Delaunay 三角剖分、 alpha 形状和 Voronoi 卷,使用增量式算法和精确的算法。若要安装,请键入"做",可能调整生成文件后。
    2022-02-06 23:32:47下载
    积分:1
  • 基于Hilbert Huang Transform的暂态信号检测
    基于Hilbert Huang Transform的多扰动暂态信号检测,能够较好的提取出暂态信号出现的时刻及信号幅度,是分析非平稳信号的良好工具。
    2023-04-11 13:10:03下载
    积分:1
  • 求 排列组合,用.net实现,能求出所有的排列组合情况
    求 排列组合,用.net实现,能求出所有的排列组合情况-Permutation and combination for use. Net realized, can be obtained in all cases of permutation and combination
    2023-01-12 08:40:03下载
    积分:1
  • This algorithm was developed by Professor Ronald L. Rivest of MIT and can be fou
    This algorithm was developed by Professor Ronald L. Rivest of MIT and can be found presented in several languages. What I provide to you here is a C++ derivative of the original C implementation of Professor Rivets. The library code itself is platform-independant and has been tested in Redhat Linux. I ve included the sample code and makefile that I used for the Linux test. The demo, however, was written with Visual C++ 6 on a Windows 2000 platform.-This algorithm was developed by Professor Ronald L. Rivest of MIT and can be found presented in several languages. What I provide to you here is a C derivative of the original C implementation of Professor Rivets. The library code itself is platform-independant and has been tested in Redhat Linux. I ve included the sample code and makefile that I used for the Linux test. The demo, however, was written with Visual C 6 on a Windows 2,000 platform.
    2022-01-27 12:21:27下载
    积分:1
  • 各大互联网面试题目
    资源描述文件中包含了各个互联网的面经,包括百度、阿里、腾讯等大公司,内容很全面,很适合找工作的同学,希望能给大家带来帮助。
    2022-03-13 08:52:53下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载