leokan神---USACO总结+所有题解 - AbandonZHANG的ACM之路 - 博客频道 - CSDN.NET



leokan神---USACO总结+所有题解 - AbandonZHANG的ACM之路 - 博客频道 - CSDN.NET

花了几个月时间,做完了USACO,感觉收获很大.做USACO之前和做USACO之后我感觉我的能力有很大的提升.

USACO这个题库是一个完全适合信息学竞赛初学者的题库,它里面的内容由浅至难,很"经典"的一题Your Ride Is Here是只要会编程就能做的题目.接下来的内容可以使你掌握信息学竞赛中一些基本的也是很必要的算法和数据结构.如果只是想参加noip的话做完4甚至还不用就有拿奖的水平了(noip甚至连网络流,几何都不考)

Chapter 1,

正如它的标题所言Getting started,如果你只会编程而想踏入竞赛的门槛的话,做完Getting started,你就能对什么是竞赛有一点认识了.涉及基础的贪心,动态规划,搜索,模拟.特别需要提一下的我觉得是Checker Challenge 如果不用位运算那么它的剪枝有很大的技巧,很有启发性.另外Packing Rectangles是一道极度繁琐的题目,不考什么技巧,就考是否细心,如果是初学者很有必要练习一下,不是的话可以直接pass.

DONE 2007.10.25 TEXT Introduction

Section 1.1 DONE 2008.03.16 TEXT Submitting Solutions

DONE 2007.10.26 PROB Your Ride Is Here [ANALYSIS] 无聊题

DONE 2007.10.26 TEXT Contest Problem Types

DONE 2007.10.26 TEXT Ad Hoc Problems

DONE 2007.10.26 PROB Greedy Gift Givers [ANALYSIS] 模拟

DONE 2007.10.27 PROB Friday the Thirteenth [ANALYSIS] 模拟

DONE 2007.10.27 PROB Broken Necklace [ANALYSIS] 枚举or动态规划

Section 1.2 DONE 2007.10.27 TEXT Complete Search

DONE 2007.12.30 PROB Milking Cows [ANALYSIS] 贪心

DONE 2007.12.30 PROB Transformations [ANALYSIS] 模拟

DONE 2007.12.31 PROB Name That Number [ANALYSIS] 模拟

DONE 2007.12.31 PROB Palindromic Squares [ANALYSIS] 模拟

DONE 2007.12.31 PROB Dual Palindromes [ANALYSIS] 模拟

Section 1.3 DONE 2007.12.31 TEXT Greedy Algorithm

DONE 2007.12.31 PROB Mixing Milk [ANALYSIS] 标准解法该是线段覆盖或线段树吧,但是作为chapter1 的题可以试试模拟

DONE 2007.12.31 PROB Barn Repair [ANALYSIS] 贪心

DONE 2007.12.31 TEXT Winning Solutions

DONE 2008.01.01 PROB Calf Flac [ANALYSIS] 枚举

DONE 2008.01.01 PROB Prime Cryptarithm [ANALYSIS] 枚举

Section 1.4 DONE 2008.01.01 TEXT More Search Techniques

DONE 2008.01.25 PROB Packing Rectangles [ANALYSIS] 模拟

DONE 2008.01.14 PROB The Clocks [ANALYSIS] 搜索or枚举还有一种数学方法的

DONE 2008.01.25 PROB Arithmetic Progressions [ANALYSIS] 枚举

DONE 2008.01.04 PROB Mother's Milk [ANALYSIS] 搜索

Section 1.5 DONE 2008.01.25 TEXT Introduction to Binary Numbers

DONE 2008.01.25 PROB Number Triangles [ANALYSIS] 动态规划

DONE 2008.01.26 PROB Prime Palindromes [ANALYSIS] 枚举

DONE 2008.01.26 PROB SuperPrime Rib [ANALYSIS] 枚举

DONE 2008.01.26 PROB Checker Challenge [ANALYSIS] 搜索

Chapter 2,

       它涉及一些算法了,比较基础的就是最短路径的Bessie Come Home,还有很大一部分是练习编程技巧的,其中一个比较实用的―位运算.

Section 2.1 DONE 2008.01.26 TEXT Graph Theory

DONE 2008.01.26 TEXT Flood Fill Algorithms

DONE 2008.01.27 PROB The Castle [ANALYSIS] Flood Fill

DONE 2008.01.27 PROB Ordered Fractions [ANALYSIS] 枚举or递归

DONE 2008.01.27 PROB Sorting A Three-Valued Sequence [ANALYSIS] 贪心

DONE 2008.01.27 PROB Healthy Holsteins [ANALYSIS] 搜索

DONE 2008.01.27 PROB Hamming Codes [ANALYSIS] 枚举(位运算)

Section 2.2 DONE 2008.01.27 TEXT Data Structures

DONE 2008.01.27 TEXT Dynamic Programming

DONE 2008.01.28 PROB Preface Numbering [ANALYSIS] 模拟

DONE 2008.01.28 PROB Subset Sums [ANALYSIS] 动态规划

DONE 2008.01.28 PROB Runaround Numbers [ANALYSIS] 模拟

DONE 2008.01.28 PROB Party Lamps [ANALYSIS] 枚举(位运算)

Section 2.3 DONE 2008.01.28 PROB The Longest Prefix [ANALYSIS] 动态规划

DONE 2008.01.29 PROB Cow Pedigrees [ANALYSIS] 动态规划

DONE 2008.01.29 PROB Zero Sum [ANALYSIS] 搜索

DONE 2008.01.29 PROB Money Systems [ANALYSIS] 动态规划(背包模型)

DONE 2008.01.29 PROB Controlling Companies [ANALYSIS] 搜索

Section 2.4 DONE 2008.01.29 TEXT Shortest Paths

DONE 2008.01.30 PROB The Tamworth Two [ANALYSIS] 搜索

DONE 2008.01.30 PROB Overfencing [ANALYSIS] 搜索

DONE 2007.11.25 PROB Cow Tours [ANALYSIS] 最短路

DONE 2007.11.03 PROB Bessie Come Home [ANALYSIS] 最短路

DONE 2008.01.30 PROB Fractions to Decimals [ANALYSIS] 模拟

Chapter 3,

       更多的算法,最小生成树的Agri-Net,欧拉回路的Riding The Fences, Sweet Butter这一题是最短路径,不过这题完全可以作为从初级图论题到中级图论题的一个过渡,需要用到bellman-ford或SPFA,当然heap dijkstra也可以,再高级的Chapter 3的程度还未到,可以先不学.

Home on the Range这题的动态规划是USACO 从Chapter1 开始以来新的一种动态规划方式,是在一个矩阵中判断一个位置和附近位置关系得到的状态转移方程. Feed Ratios这题可以枚举,但是有更好的方法(高斯消元,克莱姆法则…关于克莱姆法则请参见附录).closed fences是USACO的第一道几何题,详细题解看附录.

Section 3.1 DONE 2008.01.30 TEXT Minimal Spanning Trees

DONE 2007.11.03 PROB Agri-Net [ANALYSIS] MST

DONE 2008.01.31 PROB Score Inflation [ANALYSIS] 动态规划

DONE 2008.01.31 PROB Humble Numbers [ANALYSIS] 枚举

DONE 2008.01.31 PROB Shaping Regions [ANALYSIS] 线段树or矩形覆盖

DONE 2008.02.01 PROB Contact [ANALYSIS] 模拟

DONE 2008.02.01 PROB Stamps [ANALYSIS] 动态规划(背包模型)

Section 3.2 DONE 2008.02.01 TEXT Knapsack Problems

DONE 2007.12.02 PROB Factorials [ANALYSIS] 可以用错误方法(保留部分位)过这题,但是这样做是错误的,仅仅对于小数据有效,正确方法是统计2和5 的个数然后计算

DONE 2008.02.01 PROB Stringsobits [ANALYSIS] 康托展开

DONE 2008.02.02 PROB Spinning Wheels [ANALYSIS] 模拟

DONE 2007.11.19 PROB Feed Ratios [ANALYSIS] 枚举or高斯消元or克莱姆法则

DONE 2008.02.02 PROB Magic Squares [ANALYSIS] 搜索

DONE 2008.02.05 PROB Sweet Butter [ANALYSIS] 最短路

Section 3.3 DONE 2008.02.05 TEXT Eulerian Tours

DONE 2008.02.05 PROB Riding The Fences [ANALYSIS] 欧拉路

DONE 2008.02.08 PROB Shopping Offers [ANALYSIS] 动态规划(背包模型)

DONE 2008.02.09 PROB Camelot [ANALYSIS] 搜索+贪心

DONE 2008.02.09 PROB Home on the Range [ANALYSIS] 动态规划

DONE 2008.02.09 PROB A Game [ANALYSIS] 动态规划

Section 3.4 DONE 2008.02.12 TEXT Computational Geometry

DONE 2008.02.12 PROB Closed Fences [ANALYSIS] 几何

DONE 2007.11.22 PROB American Heritage [ANALYSIS] 递归,经典,入门必做

DONE 2008.02.15 PROB Electric Fence [ANALYSIS] pick公式(其实直接枚举效率更高且简单)

DONE 2008.02.15 PROB Raucous Rockers [ANALYSIS] 动态规划(背包模型)

Chapter 4,

       可以找到一点点竞赛感觉了…算法方面有网络流Drainage Ditches,二分图最大匹配The Perfect Stall,很多经典问题,例如Pollutant Control的求最小割集. Chapter 4的每一题都很有价值,对于初学者能长很多经验的比如dfsid这种搜索技巧.

Section 4.1 DONE 2008.02.18 TEXT Optimization Techniques

DONE 2008.02.19 PROB Beef McNuggets [ANALYSIS] 动态规划+枚举

DONE 2008.03.01 PROB Fence Rails [ANALYSIS] 搜索(dfsid)

DONE 2008.02.20 PROB Fence Loops [ANALYSIS] 最小环(它给出的是边的联通关系而不是点的联通关系)对于这种需要自己构图的题目可以用搜索.

DONE 2008.02.22 PROB Cryptcowgraphy [ANALYSIS] 搜索+elfhash

Section 4.2 DONE 2008.03.01 TEXT "Network Flow" Algorithms

DONE 2008.02.22 PROB Drainage Ditches [ANALYSIS] 网络流

DONE 2007.12.11 PROB The Perfect Stall [ANALYSIS] 二分图匹配

DONE 2008.03.02 PROB Job Processing [ANALYSIS] 动态规划+贪心

DONE 2008.03.02 PROB Cowcycles [ANALYSIS] 搜索

Section 4.3 DONE 2008.03.03 TEXT Big Numbers

DONE 2007.12.02 PROB Buy Low, Buy Lower [ANALYSIS] 动态规划(最长不下降子序列)

DONE 2008.03.05 PROB The Primes [ANALYSIS] 搜索,优化可以很多的,很有趣味性

DONE 2008.03.07 PROB Street Race [ANALYSIS] 求割点,搜索

DONE 2008.03.07 PROB Letter Game [ANALYSIS] 枚举,我觉得它主要考预处理,预处理后其实只需枚举几十个

Section 4.4 DONE 2008.03.07 PROB Shuttle Puzzle [ANALYSIS]

DONE 2008.03.08 PROB Pollutant Control [ANALYSIS] 最小割

DONE 2008.03.09 PROB Frame Up [ANALYSIS] 拓扑排序

Chapter 5,

很耐人寻味的一个章节,全是好题

Section 5.1 DONE 2008.03.14 TEXT Convex Hulls

DONE 2008.03.11 PROB Fencing the Cows [ANALYSIS] 凸包

DONE 2008.03.14 PROB Starry Night [ANALYSIS] flood fill

DONE 2008.03.15 PROB Musical Themes [ANALYSIS] 动态规划or枚举

Section 5.2 DONE 2008.03.16 PROB Snail Trail [ANALYSIS] 搜索

DONE 2008.03.16 PROB Electric Fences [ANALYSIS] 几何

DONE 2008.03.17 PROB Wisconsin Squares [ANALYSIS] 搜索,数据结构上如果用表能有很好的效果

Section 5.3 DONE 2008.03.19 TEXT Heuristics & Approximate Searches

DONE 2008.03.20 PROB Milk Measuring [ANALYSIS] 动态规划or dfsid+动态规划/dfs(用dfs对于这题数据能有很好的效果0s出解)

DONE 2008.03.21 PROB Window Area [ANALYSIS] 模拟+矩形覆盖

DONE 2008.03.22 PROB Network of Schools [ANALYSIS] 图的连通性

DONE 2008.03.22 PROB Big Barn [ANALYSIS] 动态规划

Section 5.4 DONE 2008.03.23 PROB All Latin Squares [ANALYSIS] 搜索or错排(数学性很强,推广很难)

DONE 2008.03.25 PROB Canada Tour [ANALYSIS] 网络流or动态规划

DONE 2008.04.04 PROB Character Recognition [ANALYSIS] 统计+动态规划

DONE 2008.03.28 PROB Betsy's Tour [ANALYSIS] 搜索

DONE 2008.03.29 PROB TeleCowmunication [ANALYSIS] 最小割

Section 5.5 DONE 2008.03.30 PROB Picture [ANALYSIS] 线段树

DONE 2008.03.30 PROB Hidden Passwords [ANALYSIS] 枚举+KMP思想优化

DONE 2008.04.04 PROB Two Five [ANALYSIS] 搜索+康托展开

Chapter 6,

只有几题

Section 6.1 DONE 2008.04.01 PROB Postal Vans [ANALYSIS] 动态规划

DONE 2008.04.02 PROB A Rectangular Barn [ANALYSIS] 动态规划

DONE 2008.04.03 PROB Cow XOR [ANALYSIS] 枚举+优化


Read full article from leokan神---USACO总结+所有题解 - AbandonZHANG的ACM之路 - 博客频道 - CSDN.NET


No comments:

Post a Comment

Labels

Algorithm (219) Lucene (130) LeetCode (97) Database (36) Data Structure (33) text mining (28) Solr (27) java (27) Mathematical Algorithm (26) Difficult Algorithm (25) Logic Thinking (23) Puzzles (23) Bit Algorithms (22) Math (21) List (20) Dynamic Programming (19) Linux (19) Tree (18) Machine Learning (15) EPI (11) Queue (11) Smart Algorithm (11) Operating System (9) Java Basic (8) Recursive Algorithm (8) Stack (8) Eclipse (7) Scala (7) Tika (7) J2EE (6) Monitoring (6) Trie (6) Concurrency (5) Geometry Algorithm (5) Greedy Algorithm (5) Mahout (5) MySQL (5) xpost (5) C (4) Interview (4) Vi (4) regular expression (4) to-do (4) C++ (3) Chrome (3) Divide and Conquer (3) Graph Algorithm (3) Permutation (3) Powershell (3) Random (3) Segment Tree (3) UIMA (3) Union-Find (3) Video (3) Virtualization (3) Windows (3) XML (3) Advanced Data Structure (2) Android (2) Bash (2) Classic Algorithm (2) Debugging (2) Design Pattern (2) Google (2) Hadoop (2) Java Collections (2) Markov Chains (2) Probabilities (2) Shell (2) Site (2) Web Development (2) Workplace (2) angularjs (2) .Net (1) Amazon Interview (1) Android Studio (1) Array (1) Boilerpipe (1) Book Notes (1) ChromeOS (1) Chromebook (1) Codility (1) Desgin (1) Design (1) Divide and Conqure (1) GAE (1) Google Interview (1) Great Stuff (1) Hash (1) High Tech Companies (1) Improving (1) LifeTips (1) Maven (1) Network (1) Performance (1) Programming (1) Resources (1) Sampling (1) Sed (1) Smart Thinking (1) Sort (1) Spark (1) Stanford NLP (1) System Design (1) Trove (1) VIP (1) tools (1)

Popular Posts