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

数据<b>结构</b>

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    标签: government streamline important alphabet

    上传时间: 2015-06-09

    上传用户:weixiao99

  • 电力系统在台稳定计算式电力系统不正常运行方式的一种计算。它的任务是已知电力系统某一正常运行状态和受到某种扰动

    电力系统在台稳定计算式电力系统不正常运行方式的一种计算。它的任务是已知电力系统某一正常运行状态和受到某种扰动,计算电力系统所有发电机能否同步运行 1运行说明: 请输入初始功率S0,形如a+bi 请输入无限大系统母线电压V0 请输入系统等值电抗矩阵B 矩阵B有以下元素组成的行矩阵 1正常运行时的系统直轴等值电抗Xd 2故障运行时的系统直轴等值电抗X d 3故障切除后的系统直轴等值电抗 请输入惯性时间常数Tj 请输入时段数N 请输入哪个时段发生故障Ni 请输入每时段间隔的时间dt

    标签: 电力系统 计算 运行

    上传时间: 2015-06-13

    上传用户:it男一枚

  • 文件包含程序源原文件

    文件包含程序源原文件,但不包括数据表结构;此原码是仓库管理系统。

    标签: 程序

    上传时间: 2013-12-13

    上传用户:asdkin

  • 上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P)

    上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一组有限的产生式规则集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素称为非终结符,T的元素称为终结符,S是一个特殊的非终结符,称为文法开始符。 设G=(V, T, S, P)是一个CFG,则G产生的语言是所有可由G产生的字符串组成的集合,即L(G)={x∈T* | Sx}。一个语言L是上下文无关语言(Context-Free Language, CFL),当且仅当存在一个CFG G,使得L=L(G)。 *⇒ 例如,设文法G:S→AB A→aA|a B→bB|b 则L(G)={a^nb^m | n,m>=1} 其中非终结符都是大写字母,开始符都是S,终结符都是小写字母。

    标签: Context-Free Grammar CFG

    上传时间: 2013-12-10

    上传用户:gaojiao1999

  • 学生成绩管理 假设有一个班级的学生n人

    学生成绩管理 假设有一个班级的学生n人,期末考试老师要对成绩从高到低列出,并对各科的考试成绩求出其最高分、最低分和平均成绩。现在设计一个成绩管理程序,能够实现以下的功能: (1)对某门科目的成绩进行排序并显示输出; (2)求出每门科目的最高分、最低分和平均分的信息; 学生成绩的数据用结构数组表示,包括:学号、姓名、三门科目的考试成绩,其结构格式如下: 学号 姓名 语文 数学 外语 C++ int num char name[10] int score[4]

    标签:

    上传时间: 2015-10-24

    上传用户:Thuan

  • 系统菜单的主要功能 (1)输入若干条记录 (2)显示所有记录 (3)按学号排序 (4)插入一条记录 (5)按姓名查找

    系统菜单的主要功能 (1)输入若干条记录 (2)显示所有记录 (3)按学号排序 (4)插入一条记录 (5)按姓名查找,删除一条记录 (6)查找并显示一条记录 (7)输出统计信息 (新增) (8)从正文中添加数据到结构体数组中 (9)将所有数据写入文件中 (0)退出程序

    标签: 记录 排序 菜单

    上传时间: 2016-01-04

    上传用户:xinyuzhiqiwuwu

  • 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

  • 数据库设计的一个lab

    数据库设计的一个lab,程序将外部格式的数据导入Oracle,根据java语言开发环境,通过数据库接口读取文件型数据库(XML或MDB)的数据。通过数据库接口在Oracle9i中手工建立对应的数据表结构,将文件中读取的数据,通过程序,插入到数据库中建立的相应数据表里。

    标签: lab 数据库设计

    上传时间: 2016-03-03

    上传用户:trepb001

  • 系统菜单的主要功能 (1)输入若干条记录 (2)显示所有记录 (3)按学号排序 (4)插入一条记录 (5)按姓名查找

    系统菜单的主要功能 (1)输入若干条记录 (2)显示所有记录 (3)按学号排序 (4)插入一条记录 (5)按姓名查找,删除一条记录 (6)查找并显示一条记录 (7)输出统计信息 (新增) (8)从正文中添加数据到结构体数组中 (9)将所有数据写入文件中 (0)退出程序

    标签: 记录 排序 菜单

    上传时间: 2014-01-01

    上传用户:851197153

  • 1.程序运行环境: 此程序需要 PHP + MySQL 支持。 2.功能: ①用户注册方可进入用户区

    1.程序运行环境: 此程序需要 PHP + MySQL 支持。 2.功能: ①用户注册方可进入用户区,浏览到图书馆的书库,看到最新到的图书。 ②用户可以根据图书卡号查询已经借了那些书。 ③用户可以通过4种方式搜索自己想要的书,并可以借书。 ④管理员可以添加新书,删除书,到用户还书的时候可以为其清除所借的书。 3.安装说明: ①创建数据表,数据表结构如文件book.sql.txt(建议使用phpmyadmin)

    标签: MySQL PHP 程序 用户

    上传时间: 2013-12-10

    上传用户:llandlu