虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

n-dimensional

  • 传教士野人渡河问题C++代码实现,更改N和K即可实现不同数目问题的求解

    传教士野人渡河问题C++代码实现,更改N和K即可实现不同数目问题的求解

    标签: 代码

    上传时间: 2016-01-09

    上传用户:sardinescn

  • [问题描述]: 设停车场是一个可停放n辆汽车的狭长通道

    [问题描述]: 设停车场是一个可停放n辆汽车的狭长通道,且只有一个大门可供汽车进出。汽车在停车场内按车辆到达时间的先后顺序,依次由北向南排列(大门在最南端,最先到达的第一辆车停放在车场的最北端),若车场内已停满n辆汽车,则后来的汽车只能在门外的便道上等待,一旦有车开走,则排在便道上的第一辆车即可开入;当停车场内某辆车要离开时,在它之后进入的车辆必须先退出车场为它让路,待该辆车开出大门外,其他车辆再按原次序进入车场,每辆停放在车场的车在它离开停车场时必须按它停留的时间长短交纳费用。试为停车场编制按上述要求进行管理的模拟程序。

    标签: 停车场 汽车

    上传时间: 2013-12-25

    上传用户:xsnjzljj

  • 这是纯C论坛上的N人谢煜波的PYOS资料,想研究操作系统的朋友可以下下来研究,绝对值的研究

    这是纯C论坛上的N人谢煜波的PYOS资料,想研究操作系统的朋友可以下下来研究,绝对值的研究

    标签: PYOS 论坛 操作系统 绝对值

    上传时间: 2014-09-10

    上传用户:努力努力再努力

  • 男男女女 男男女女 男男女女 男男女女 男男女女n

    男男女女 男男女女 男男女女 男男女女 男男女女n

    标签:

    上传时间: 2016-01-14

    上传用户:sxdtlqqjl

  • 约瑟夫问题 约瑟夫问题: 有n个人围成一圈

    约瑟夫问题 约瑟夫问题: 有n个人围成一圈,顺序排号,从第一个开始报数,报到m者退出圈子,由下一个人从新开始报数,问最后六下的是几号? 要求:1.n为固定的10 2.用数组实现 3.m由键盘输入

    标签:

    上传时间: 2013-12-25

    上传用户:sz_hjbf

  • 包括一个函数OnesCount,可计算从1至N的所有自然数中出现过的"1"的个数. 主程序输出出从1到1234567890中所有满足N=OnesCount(N)的数N

    包括一个函数OnesCount,可计算从1至N的所有自然数中出现过的"1"的个数. 主程序输出出从1到1234567890中所有满足N=OnesCount(N)的数N

    标签: OnesCount 1234567890 函数 计算

    上传时间: 2014-11-10

    上传用户:qwe1234

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.

    标签: represented integers group items

    上传时间: 2016-01-17

    上传用户:jeffery

  • 圆排列问题 圆排列问题 « 问题描述: n个半径不等的圆紧密排成一行

    圆排列问题 圆排列问题 « 问题描述: n个半径不等的圆紧密排成一行,设计一个算法,使得这n个圆所排的长度最短。 « 编程任务: 对于给定的n和圆半径a[1:n],输出一个最优的圆排列方案。 方法:回溯法

    标签: laquo 半径

    上传时间: 2016-01-18

    上传用户:onewq

  • 问题描述 给定n个矩阵A1

    问题描述 给定n个矩阵A1,A2,…,An,其中,Ai与Aj+1是可乘的,i=1,2,…,n-1。 你的任务是要确定矩阵连乘的运算次序,使计算这n个矩阵的连乘积A1A2…An时总的元素乘法次数达到最少。 例如:3个矩阵A1,A2,A3,阶分别为10×100、100×5、5×50,计算连乘积A1A2A3时按(A1A2)A3所需的元素乘法次数达到最少,为7500次。

    标签: 矩阵

    上传时间: 2013-12-20

    上传用户:banyou

  • 问题描述 在n个银币中有一个是不合格的

    问题描述 在n个银币中有一个是不合格的,不合格的银币比合格银币要轻。 现用天平秤银币,找出不合格的银币,且在最坏情况下秤银币的次数最少。

    标签:

    上传时间: 2014-07-21

    上传用户:小草123