02 2021 档案

1076 Forwards on Weibo ——PAT甲级真题
摘要:1076 Forwards on Weibo Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as 阅读全文

posted @ 2021-02-24 18:10 翔鸽 阅读(80) 评论(0) 推荐(0) 编辑

1034 Head of a Gang——PAT甲级真题
摘要:1034 Head of a Gang One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we sa 阅读全文

posted @ 2021-02-24 15:44 翔鸽 阅读(39) 评论(0) 推荐(0) 编辑

1013 Battle Over Cities——PAT甲级真题
摘要:1013 Battle Over Cities It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the hig 阅读全文

posted @ 2021-02-24 09:46 翔鸽 阅读(27) 评论(0) 推荐(0) 编辑

1021 Deepest Root——PAT甲级真题
摘要:1021 Deepest Root A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are su 阅读全文

posted @ 2021-02-24 09:38 翔鸽 阅读(73) 评论(0) 推荐(0) 编辑

数据库简答题总结
摘要:数据库简答题总结 简述什么是数据库?什么是DBMS?什么是数据库系统? 答:数据库是长期存储在计算机内,有组织的,可共享的大量数据的集合;DBMS是数据库管理系统,位于用户和操作系统之间的一层数据管理软件,主要功能包括数据定义功能,数据组织存储和管理,数据操纵功能,数据库事务管理和运行管理,数据库的 阅读全文

posted @ 2021-02-23 17:04 翔鸽 阅读(1006) 评论(0) 推荐(0) 编辑

最小函数依赖求解
摘要:最小函数依赖解法总结 考研复试要学习数据库,数据库里面好多算法和知识点单看教科书很难理解,然后我就结合网上的博客和课本(数据库系统概论)对一些常考算法做一些总结,欢迎各位批评指正。 **最小函数依赖集概念:**如果函数依赖集F满足下列条件,则称F为一个极小函数依赖集。 F中任意函数依赖的右部仅含有一 阅读全文

posted @ 2021-02-23 09:46 翔鸽 阅读(677) 评论(0) 推荐(0) 编辑

1022 Digital Library——PAT甲级真题
摘要:1022 Digital Library A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers 阅读全文

posted @ 2021-02-19 23:10 翔鸽 阅读(50) 评论(0) 推荐(0) 编辑

1071 Speech Patterns——PAT甲级真题
摘要:1071 Speech Patterns People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefe 阅读全文

posted @ 2021-02-19 21:21 翔鸽 阅读(61) 评论(0) 推荐(0) 编辑

1100 Mars Numbers——PAT甲级真题
摘要:1100 Mars Numbers People on Mars count their numbers with base 13: Zero on Earth is called “tret” on Mars. The numbers 1 to 12 on Earch is called “jan 阅读全文

posted @ 2021-02-16 10:31 翔鸽 阅读(55) 评论(0) 推荐(0) 编辑

1060 Are They Equal——PAT甲级真题
摘要:1060 Are They Equal If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both save 阅读全文

posted @ 2021-02-15 10:28 翔鸽 阅读(67) 评论(0) 推荐(0) 编辑

1063 Set Similarity——PAT甲级
摘要:1063 Set Similarity Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numb 阅读全文

posted @ 2021-02-14 10:37 翔鸽 阅读(48) 评论(0) 推荐(0) 编辑

1047 Student List for Course ——PAT甲级真题
摘要:1047 Student List for Course Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, 阅读全文

posted @ 2021-02-13 23:24 翔鸽 阅读(43) 评论(0) 推荐(0) 编辑

1053 Path of Equal Weight——PAT甲级真题
摘要:1053 Path of Equal Weight 给定一个非空的树,树根为 RR。 树中每个节点 TiTi 的权重为 WiWi。 从 RR 到 LL 的路径权重定义为从根节点 RR 到任何叶节点 LL 的路径中包含的所有节点的权重之和。 现在给定一个加权树以及一个给定权重数字,请你找出树中所有的权 阅读全文

posted @ 2021-02-10 22:11 翔鸽 阅读(105) 评论(0) 推荐(0) 编辑

1004 Counting Leaves ——PAT甲级真题
摘要:1004 Counting Leaves A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Sp 阅读全文

posted @ 2021-02-10 17:43 翔鸽 阅读(36) 评论(0) 推荐(0) 编辑

1094 The Largest Generation ——PAT甲级真题
摘要:1094 The Largest Generation A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same genera 阅读全文

posted @ 2021-02-10 16:14 翔鸽 阅读(30) 评论(0) 推荐(0) 编辑

1090 Highest Price in Supply Chain——PAT甲级真题
摘要:1090 Highest Price in Supply Chain A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving 阅读全文

posted @ 2021-02-10 11:54 翔鸽 阅读(59) 评论(0) 推荐(0) 编辑

1079 Total Sales of Supply Chain ——PAT甲级真题
摘要:1079 Total Sales of Supply Chain A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– everyone involved in moving a p 阅读全文

posted @ 2021-02-10 10:52 翔鸽 阅读(90) 评论(0) 推荐(0) 编辑

1102 Invert a Binary Tree——PAT甲级真题
摘要:1102 Invert a Binary Tree The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can’t 阅读全文

posted @ 2021-02-09 23:00 翔鸽 阅读(118) 评论(0) 推荐(0) 编辑

1086 Tree Traversals Again——PAT甲级真题
摘要:1086 Tree Traversals Again An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6 阅读全文

posted @ 2021-02-09 17:00 翔鸽 阅读(58) 评论(0) 推荐(0) 编辑

1020 Tree Traversals——PAT甲级真题
摘要:1020 Tree Traversals Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, y 阅读全文

posted @ 2021-02-08 21:23 翔鸽 阅读(57) 评论(0) 推荐(0) 编辑

1098 Insertion or Heap Sort——PAT甲级真题
摘要:1098 Insertion or Heap Sort According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output 阅读全文

posted @ 2021-02-07 09:44 翔鸽 阅读(170) 评论(0) 推荐(0) 编辑

二叉堆
摘要:堆 如何手写一个堆? 首先堆是一颗完全二叉树,结合完全二叉树的性质我们可以利用数组来存储一棵树。每个结点的编号从1开始。 插入一个数。 heap[++size] = x; up(size); 求集合当中的最小值。heap[1] 删除最小值。 heap[1] = heap[size]; size--; 阅读全文

posted @ 2021-02-06 14:36 翔鸽 阅读(40) 评论(0) 推荐(0) 编辑

1107 Social Clusters——PAT甲级真题
摘要:1107 Social Clusters When register on a social network, you are always asked to specify your hobbies in order to find some potential friends with the 阅读全文

posted @ 2021-02-06 09:28 翔鸽 阅读(77) 评论(0) 推荐(0) 编辑

1095 Cars on Campus——PAT甲级真题
摘要:1095 Cars on Campus Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the 阅读全文

posted @ 2021-02-03 17:25 翔鸽 阅读(59) 评论(0) 推荐(0) 编辑

1080 Graduate Admission——PAT甲级真题
摘要:1080 Graduate Admission——PAT甲级练习题 It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang 阅读全文

posted @ 2021-02-03 09:56 翔鸽 阅读(74) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示