自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 资源 (8)
  • 收藏
  • 关注

原创 使用Redhat系统在线安装(执行yum)时报错: This system is not registered with RHN.

解决方法:1. 卸载redhat自带的yum组件:    1.1.查看当前安装的yum包:           #rpm -qa|grep yum     1.2.卸载当前安装的yum包:           #rpm -qa|grep yum|xargs rpm -e --nodeps     1.3. 用1.1步骤的命令检查,所有yum包都已成功卸载2. 下载Cen

2012-11-26 22:13:43 838 1

原创 插入排序 Insertion Sort

插入排序基本思想:将一个记录插入到已排好序的有序表中,从而得到一个新的,记录数增1的有序表。插入排序的思想就像我们平时打扑克牌一样,刚开始的时候我们手里没有牌,所有的牌都扣在桌子上。然后我们每次从桌子上抓起一张牌插入手里已排好序的牌中。为了给刚抓起的牌找到合适的位置,我们需要那这张牌和手里的牌一一比较。任何时候我们手里的牌都是有序的。 插入排序复杂度:空间:需要一个记录的辅助空

2012-11-26 21:55:47 922 1

原创 快速排序 Quicksort

分治法的基本思想(Divide-and-Conquer):将原问题分解为若干个规模更小,但结构与原问题相同的子问题。递归的解决这些子问题,然后将这些子问题的解组合成原问题的解。快速排序基本思想:快速排序是一种划分交换排序,它的基本思想是,通过一趟排序将记录分割成独立的两部分,其中一部分记录的关键字均比另一部分的关键字小,然后用递归的方法再分别对分割所得的两个子序列进行快速排序。设当

2012-11-25 21:58:12 559

原创 冒泡排序

冒泡排序基本思想:冒泡排序是交换排序的一种,两两比较待排序的关键字,发现两个记录的次序相反时即进行交换。在冒泡排序的过程中,关键字小的记录好比水中的气泡逐趟向上漂浮,而关键字大的记录好比石块往下沉,每一趟有一个最大的石头沉搭到水底。 排序过程:首先将第一个记录的关键字和第二个记录的关键字进行比较,若为逆序(即source[1].key>source[2].key),则交换两个记

2012-11-25 16:46:35 829

原创 软件测试基础

1. 软件测试定义    1.1. 《软件测试的艺术》(1979年,Glen ford Myers):测试是为发现错误而执行的一个程序或者系统的过程。             但是测试不单纯是一个发现错误的过程,而且包含软件质量评价的内容。    1.2. 《软件测试完全指南》(1983年,Bill Hetzel):测试是以评价一个程序或者系统属性为目标的任何一种活动,测试是对软件质量

2012-11-25 11:59:36 1200

原创 Solaris下如何map network drive

使用share和mount命令:-在A机器上输入 machineA#share -F nfs -o rw /sharefolder-在B机器上输入 machineB#mount -F machineA:/sharefolder /mountfolder 有时在B机器上执行mount后,会返回:RPC: Program not registered.这是因为在A机器上缺少moun

2012-11-24 08:22:02 783

原创 Oracle11g如何修改最大连接数

1. 用sys登录sql plus:     usename: sys as sysdba    password: ****2. 查看最大连接数: select value from V$parameter where name="processes";3. 查看当前连接数: select count (*) from V$process;4. 把最大连接数改成300:alt

2012-11-24 08:21:31 7297

原创 Solaris:在Vi文件的时候出现错误: "Terminal too wide"

执行命令:stty columns 132

2012-11-23 16:11:09 1014

原创 如何检查Linux版本号

使用这些命令:1.  $cat /etc/redhat-release      Red Hat Enterprise Linux Server release 5.1 (Tikanga)     $cat /etc/SuSE-release       SUSE Linux Enterprise Server 11 (x86_64)      VERSION = 11

2012-11-23 16:08:59 617

原创 Solaris9上,如何用gtar来解开.tar包

解决方法:$ /usr/sfw/bin/gtar -xvf filename.tar

2012-11-23 15:58:28 3080

原创 windows下如何查看端口是否被占用

解决方法:以8080端口为例1. netstat -aon|findstr "8080"    可以查出8080端口被进程号为 xxx 的进程所占用2. tasklist | findstr "xxx"    就知道是那个程序占用的端口了

2012-11-23 15:29:51 825

原创 /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory.

问题描述:这个问题在SUSE上不会遇到,只有在Redhat 64bit上会遇到。解决方法:#yum what provides ld-linux.so.2(如果yum不支持,需要先安装yum. 通过这个命令可以查出我们需要安装glibc.i686)#yum install glibc.i686(该解决方法适用于Redhat5-64bit和Redhat6-64bit, SUS

2012-11-23 15:25:37 6679

原创 Solaris下打包压缩命令

1. (.tar)    打包: tar cvf Filename.tar DirName    解包: tar xvf Filename.tar 2. (.gz)     压缩: tar zcvf Filename.gz DirName     解压1:gunzip Filename.gz     解压2:gzip -d Filename.gz 3. (.ta

2012-11-23 15:06:32 4240 1

原创 Linux下解压打包命令

1. (.tar)    打包: tar cvf Filename.tar DirName    解包: tar xvf Filename.tar 2. (.gz)     压缩: tar zcvf Filename.gz DirName     解压1:gunzip Filename.gz     解压2:gzip -d Filename.gz 3. (.ta

2012-11-23 15:03:52 584

原创 Linux系统中修改主机名

1. 如果是Redhat: 修改以下两个文件中的主机名,然后重启机器    # vi /etc/sysconfig/network    # vi /etc/hosts2. 如果是SUSE:    # vi /etc/HOSTNAME    然后运行命令:    #/etc/rc.d/boot/localnet start

2012-11-23 14:57:21 721

原创 error while loading share libraries:libstdc++.so.5

问题描述:在Linux下安装应用程序时遇到错误:error while loading share libraries:libstdc++.so.5: cannot open shared object file: No such file or directory解决方法:1. 如果是CentOS 32bit系统, 直接在终端输入:    yum install libstd

2012-11-23 14:38:07 4470

原创 怎么查看Solaris是32位还是64位的?

执行命令:isinfo -b

2012-11-23 14:27:20 1102

原创 安装SUN ONE到步骤"Fully Qualified Computer Name"时报错: Cannot resolve name ***.

解决办法:将机器名连同域名添加到hosts文件中:127.0.0.1  MachineName.domain.com

2012-11-23 14:24:45 721

原创 现状了CA,再装IIS, 该怎么办

在安装CA Server之前应该现状IIS, 如果不想顺序搞反了,就打开命令行,执行:certutil /vroot

2012-11-23 14:20:43 522

原创 IE中怎么Enable Avtive Scripting

Tools -> Internet Options -> Security -> Internet -> Default Level -> Custom Level -> Security Settings -> Internet Zone -> Enable for Active Scripting in the Scripting Section.

2012-11-23 14:17:08 988

原创 Solaris10下关闭防火墙

# svcs -a |grep network |egrep "pfil|ipf"enable         Oct_22   svc:/network/ipfilter:defaultonline          Oct_22    svc:/network/pfil:default#svcadm disable  svc:/network/ipfilter:default

2012-11-23 14:08:45 10160

原创 Solaris下修改主机名Host Name

1. Vi /etc/hosts, 添加 "ip   yourhostname"2. vi /etc/nodename, 写入yourhostname3. vi /etc/hostname.e1000g0, 写入yourhostname4. 重启机器[注]:除了/etc/hosts之外,其他两个文件里只写主机名

2012-11-23 14:03:35 4160 1

原创 安装虚拟机时遇到错误: The unattend file contains an invalid product key

解决办法:Disable the floppy disk in the VMWare.

2012-11-23 13:57:58 1646

原创 Linux下执行ifconfig遇到错误: bash:ifconfig:command not found

原因:ifconfig命令所在路径/sbin未包含在系统环境变量PATH解决方法://在一般用户的home目录下的.bashrc文件中加入:export PATH = $PATH:/sbin//保存退出, 然后执行:$cource .bashrc//就可以执行ifconfig 命令了 其他解决方法:1. 在当前窗口使用命令: export PATH =

2012-11-23 13:55:36 15168 2

原创 Linux下修改/设置环境变量JAVA_HOME

1. 永久修改,对所有用户有效    # vi /etc/profile    //按键盘[Shift + g], 在profile文件最后添加下面的内容:    export JAVA_HOME = /home/myuser/jdk1.7.0_03    export PATH = $JAVA_HOME/bin:$PATH    export CLASSPATH=.:$JAV

2012-11-23 13:44:44 81192 1

原创 安装虚拟机VM windows 2008 R2时出现error: This host is VT-capatable, but VT is disabled。

解决方法:1. 用工具 “Processor Check for 64-bit Compatibility”检查CPU是否适合运行64bit guest OS;2. 如果可以,就进入BIOS, 找到VT选项,enable VT 就可以了。 【注释】VT - Virtualization Tech

2012-11-23 13:25:54 2492

原创 Selenium webdriver 学习笔记(三) - 基本UI控件操作

1. 文本框Textbox      // Find the username input element by its name      WebElement username = driver.findElement(By.name("username"));      // Enter the user name: jill      username.clear();

2012-11-23 13:18:24 5236

原创 Selenium webdriver 学习笔记(二) - UI Element定位

1. 创建Firefox web driver实例    WebDriver driver = new FirefoxDriver();                    //FireFox driver    WebDriver driver=newInternetExplorerDriver();   //IE driver2. 获取Web page    driv

2012-11-21 15:49:31 13002

selenium_2_testing_tools

英文版的电子书,从入门开始介绍selenium2.0, 也就是webdriver. 学习selenium webdriver的必备神器!

2013-04-01

Workshop applets and ExamplePrograms

Data Structures and Algorithms in Java书中所用到的applet例子

2013-02-14

LPI Linux Certification in a Nutshell, 2nd Edition

LPI Linux Certification in a Nutshell, 第二版,英文版

2013-02-11

TheAlgorithmDesignManual.pdf

The Algorithm Design Manual-Steven S. Skiena 第二版,英文版,目录如下: I Practical Algorithm Design 1 1 Introduction to Algorithm Design 3 1.1 Robot Tour Optimization . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Selecting the Right Jobs . . . . . . . . . . . . . . . . . . . . . . . 9 1.3 Reasoning about Correctness . . . . . . . . . . . . . . . . . . . . 11 1.4 Modeling the Problem . . . . . . . . . . . . . . . . . . . . . . . . 19 1.5 About theWar Stories . . . . . . . . . . . . . . . . . . . . . . . . 22 1.6 War Story: PsychicModeling . . . . . . . . . . . . . . . . . . . . 23 1.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2 Algorithm Analysis 31 2.1 The RAM Model of Computation . . . . . . . . . . . . . . . . . . 31 2.2 The Big Oh Notation . . . . . . . . . . . . . . . . . . . . . . . . . 34 2.3 Growth Rates and Dominance Relations . . . . . . . . . . . . . . 37 2.4 Working with the Big Oh . . . . . . . . . . . . . . . . . . . . . . 40 2.5 Reasoning About Efficiency . . . . . . . . . . . . . . . . . . . . . 41 2.6 Logarithms and Their Applications . . . . . . . . . . . . . . . . . 46 2.7 Properties of Logarithms . . . . . . . . . . . . . . . . . . . . . . . 50 2.8 War Story: Mystery of the Pyramids . . . . . . . . . . . . . . . . 51 2.9 Advanced Analysis (*) . . . . . . . . . . . . . . . . . . . . . . . . 54 2.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 3 Data Structures 65 3.1 Contiguous vs. Linked Data Structures . . . . . . . . . . . . . . . 66 xii CONTENTS 3.2 Stacks and Queues . . . . . . . . . . . . . . . . . . . . . . . . . . 71 3.3 Dictionaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 3.4 Binary Search Trees . . . . . . . . . . . . . . . . . . . . . . . . . . 77 3.5 Priority Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 3.6 War Story: Stripping Triangulations . . . . . . . . . . . . . . . . 85 3.7 Hashing and Strings . . . . . . . . . . . . . . . . . . . . . . . . . 89 3.8 Specialized Data Structures . . . . . . . . . . . . . . . . . . . . . 93 3.9 War Story: String ’em Up . . . . . . . . . . . . . . . . . . . . . . 94 3.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 4 Sorting and Searching 103 4.1 Applications of Sorting . . . . . . . . . . . . . . . . . . . . . . . . 104 4.2 Pragmatics of Sorting . . . . . . . . . . . . . . . . . . . . . . . . . 107 4.3 Heapsort: Fast Sorting via Data Structures . . . . . . . . . . . . 108 4.4 War Story: Give me a Ticket on an Airplane . . . . . . . . . . . 118 4.5 Mergesort: Sorting by Divide-and-Conquer . . . . . . . . . . . . 120 4.6 Quicksort: Sorting by Randomization . . . . . . . . . . . . . . . 123 4.7 Distribution Sort: Sorting via Bucketing . . . . . . . . . . . . . . 129 4.8 War Story: Skiena for the Defense . . . . . . . . . . . . . . . . . 131 4.9 Binary Search and Related Algorithms . . . . . . . . . . . . . . . 132 4.10 Divide-and-Conquer . . . . . . . . . . . . . . . . . . . . . . . . . . 135 4.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 5 Graph Traversal 145 5.1 Flavors of Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 146 5.2 Data Structures for Graphs . . . . . . . . . . . . . . . . . . . . . 151 5.3 War Story: I was a Victim ofMoore’s Law . . . . . . . . . . . . 155 5.4 War Story: Getting the Graph . . . . . . . . . . . . . . . . . . . . 158 5.5 Traversing a Graph . . . . . . . . . . . . . . . . . . . . . . . . . . 161 5.6 Breadth-First Search . . . . . . . . . . . . . . . . . . . . . . . . . 162 5.7 Applications of Breadth-First Search . . . . . . . . . . . . . . . . 166 5.8 Depth-First Search . . . . . . . . . . . . . . . . . . . . . . . . . . 169 5.9 Applications of Depth-First Search . . . . . . . . . . . . . . . . . 172 5.10 Depth-First Search on Directed Graphs . . . . . . . . . . . . . . 178 5.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 6 Weighted Graph Algorithms 191 6.1 Minimum Spanning Trees . . . . . . . . . . . . . . . . . . . . . . 192 6.2 War Story: Nothing but Nets . . . . . . . . . . . . . . . . . . . . 202 6.3 Shortest Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205 6.4 War Story: Dialing for Documents . . . . . . . . . . . . . . . . . 212 6.5 Network Flows and Bipartite Matching . . . . . . . . . . . . . . 217 6.6 Design Graphs, Not Algorithms . . . . . . . . . . . . . . . . . . . 222 6.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225 CONTENTS xiii 7 Combinatorial Search and Heuristic Methods 230 7.1 Backtracking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 7.2 Search Pruning . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238 7.3 Sudoku . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 7.4 War Story: Covering Chessboards . . . . . . . . . . . . . . . . . . 244 7.5 Heuristic SearchMethods . . . . . . . . . . . . . . . . . . . . . . 247 7.6 War Story: Only it is Not a Radio . . . . . . . . . . . . . . . . . 260 7.7 War Story: Annealing Arrays . . . . . . . . . . . . . . . . . . . . 263 7.8 Other Heuristic SearchMethods . . . . . . . . . . . . . . . . . . 266 7.9 Parallel Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . 267 7.10 War Story: Going Nowhere Fast . . . . . . . . . . . . . . . . . . . 268 7.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 8 Dynamic Programming 273 8.1 Caching vs. Computation . . . . . . . . . . . . . . . . . . . . . . 274 8.2 Approximate String Matching . . . . . . . . . . . . . . . . . . . . 280 8.3 Longest Increasing Sequence . . . . . . . . . . . . . . . . . . . . . 289 8.4 War Story: Evolution of the Lobster . . . . . . . . . . . . . . . . 291 8.5 The Partition Problem . . . . . . . . . . . . . . . . . . . . . . . . 294 8.6 Parsing Context-Free Grammars . . . . . . . . . . . . . . . . . . 298 8.7 Limitations of Dynamic Programming: TSP . . . . . . . . . . . . 301 8.8 War Story: What’s Past is Prolog . . . . . . . . . . . . . . . . . . 304 8.9 War Story: Text Compression for Bar Codes . . . . . . . . . . . 307 8.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310 9 Intractable Problems and Approximation Algorithms 316 9.1 Problems and Reductions . . . . . . . . . . . . . . . . . . . . . . 317 9.2 Reductions for Algorithms . . . . . . . . . . . . . . . . . . . . . . 319 9.3 Elementary Hardness Reductions . . . . . . . . . . . . . . . . . . 323 9.4 Satisfiability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 328 9.5 Creative Reductions . . . . . . . . . . . . . . . . . . . . . . . . . 330 9.6 The Art of Proving Hardness . . . . . . . . . . . . . . . . . . . . 334 9.7 War Story: Hard Against the Clock . . . . . . . . . . . . . . . . . 337 9.8 War Story: And Then I Failed . . . . . . . . . . . . . . . . . . . . 339 9.9 P vs. NP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341 9.10 Dealing with NP-complete Problems . . . . . . . . . . . . . . . . 344 9.11 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350 10 How to Design Algorithms 356 II The Hitchhiker’s Guide to Algorithms 361 11 A Catalog of Algorithmic Problems 363 xiv CONTENTS 12 Data Structures 366 12.1 Dictionaries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367 12.2 Priority Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373 12.3 Suffix Trees and Arrays . . . . . . . . . . . . . . . . . . . . . . . . 377 12.4 Graph Data Structures . . . . . . . . . . . . . . . . . . . . . . . . 381 12.5 Set Data Structures . . . . . . . . . . . . . . . . . . . . . . . . . . 385 12.6 Kd-Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 13 Numerical Problems 393 13.1 Solving Linear Equations . . . . . . . . . . . . . . . . . . . . . . . 395 13.2 Bandwidth Reduction . . . . . . . . . . . . . . . . . . . . . . . . 398 13.3 Matrix Multiplication . . . . . . . . . . . . . . . . . . . . . . . . . 401 13.4 Determinants and Permanents . . . . . . . . . . . . . . . . . . . . 404 13.5 Constrained and Unconstrained Optimization . . . . . . . . . . . 407 13.6 Linear Programming . . . . . . . . . . . . . . . . . . . . . . . . . 411 13.7 Random Number Generation . . . . . . . . . . . . . . . . . . . . 415 13.8 Factoring and Primality Testing . . . . . . . . . . . . . . . . . . . 420 13.9 Arbitrary-Precision Arithmetic . . . . . . . . . . . . . . . . . . . 423 13.10 Knapsack Problem . . . . . . . . . . . . . . . . . . . . . . . . . . 427 13.11 Discrete Fourier Transform . . . . . . . . . . . . . . . . . . . . . 431 14 Combinatorial Problems 434 14.1 Sorting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436 14.2 Searching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441 14.3 Median and Selection . . . . . . . . . . . . . . . . . . . . . . . . . 445 14.4 Generating Permutations . . . . . . . . . . . . . . . . . . . . . . . 448 14.5 Generating Subsets . . . . . . . . . . . . . . . . . . . . . . . . . . 452 14.6 Generating Partitions . . . . . . . . . . . . . . . . . . . . . . . . . 456 14.7 Generating Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . 460 14.8 Calendrical Calculations . . . . . . . . . . . . . . . . . . . . . . . 465 14.9 Job Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468 14.10 Satisfiability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472 15 Graph Problems: Polynomial-Time 475 15.1 Connected Components . . . . . . . . . . . . . . . . . . . . . . . 477 15.2 Topological Sorting . . . . . . . . . . . . . . . . . . . . . . . . . . 481 15.3 Minimum Spanning Tree . . . . . . . . . . . . . . . . . . . . . . . 484 15.4 Shortest Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489 15.5 Transitive Closure and Reduction . . . . . . . . . . . . . . . . . . 495 15.6 Matching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498 15.7 Eulerian Cycle/Chinese Postman . . . . . . . . . . . . . . . . . . 502 15.8 Edge and Vertex Connectivity . . . . . . . . . . . . . . . . . . . . 505 15.9 Network Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509 15.10 Drawing Graphs Nicely . . . . . . . . . . . . . . . . . . . . . . . . 513 CONTENTS xv 15.11 Drawing Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517 15.12 Planarity Detection and Embedding . . . . . . . . . . . . . . . . 520 16 Graph Problems: Hard Problems 523 16.1 Clique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525 16.2 Independent Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528 16.3 Vertex Cover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 530 16.4 Traveling Salesman Problem . . . . . . . . . . . . . . . . . . . . . 533 16.5 Hamiltonian Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . 538 16.6 Graph Partition . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541 16.7 Vertex Coloring . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544 16.8 Edge Coloring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548 16.9 Graph Isomorphism . . . . . . . . . . . . . . . . . . . . . . . . . . 550 16.10 Steiner Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555 16.11 Feedback Edge/Vertex Set . . . . . . . . . . . . . . . . . . . . . . 559 17 Computational Geometry 562 17.1 Robust Geometric Primitives . . . . . . . . . . . . . . . . . . . . 564 17.2 Convex Hull . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568 17.3 Triangulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572 17.4 Voronoi Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . 576 17.5 Nearest Neighbor Search . . . . . . . . . . . . . . . . . . . . . . . 580 17.6 Range Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584 17.7 Point Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587 17.8 Intersection Detection . . . . . . . . . . . . . . . . . . . . . . . . 591 17.9 Bin Packing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595 17.10 Medial-Axis Transform . . . . . . . . . . . . . . . . . . . . . . . . 598 17.11 Polygon Partitioning . . . . . . . . . . . . . . . . . . . . . . . . . 601 17.12 Simplifying Polygons . . . . . . . . . . . . . . . . . . . . . . . . . 604 17.13 Shape Similarity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607 17.14 Motion Planning . . . . . . . . . . . . . . . . . . . . . . . . . . . 610 17.15 Maintaining Line Arrangements . . . . . . . . . . . . . . . . . . . 614 17.16 Minkowski Sum . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617 18 Set and String Problems 620 18.1 Set Cover . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621 18.2 Set Packing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625 18.3 String Matching . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628 18.4 Approximate String Matching . . . . . . . . . . . . . . . . . . . . 631 18.5 Text Compression . . . . . . . . . . . . . . . . . . . . . . . . . . . 637 18.6 Cryptography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641 18.7 Finite State Machine Minimization . . . . . . . . . . . . . . . . . 646 18.8 Longest Common Substring/Subsequence . . . . . . . . . . . . . 650 18.9 Shortest Common Superstring . . . . . . . . . . . . . . . . . . . . 654 xvi CONTENTS 19 Algorithmic Resources 657 19.1 Software Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 657 19.2 Data Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663 19.3 Online Bibliographic Resources . . . . . . . . . . . . . . . . . . . 663 19.4 Professional Consulting Services . . . . . . . . . . . . . . . . . . . 664 Bibliography 665 Index 709

2013-01-08

career cup book 4th edition.pdf

150 programming interview questions and solutions. • Five proven approaches to solving tough algorithm questions • Ten mistakes candidates make -- and how to avoid them • Steps to prepare for behavioral and technical questions • Interviewer war stories: a view from the interviewer’s side

2013-01-08

Ruby从入门到精通.pdf

Ruby从入门到精通电子版,Peter Cooper著,机械工业出版社。

2012-12-09

程序员面试攻略

programer_interview.pdf,程序员面试攻略,介绍了常用面试技巧,程序员面试题以及答案解析,面试必备材料

2012-12-09

LINUX与UNIX Shell编程指南.pdf

LINUX与UNIX Shell编程指南.pdf

2012-11-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除