摘要: 1 package algorithms.analysis14; 2 3 import algorithms.util.StdOut; 4 import algorithms.util.StdRandom; 5 6 /****************************************************************************** ... 阅读全文
posted @ 2016-04-20 18:37 shamgod 阅读(363) 评论(0) 推荐(0)
摘要: 1. 2. 阅读全文
posted @ 2016-04-20 18:16 shamgod 阅读(425) 评论(0) 推荐(0)
摘要: 1. 2. 3.字符串 阅读全文
posted @ 2016-04-20 18:14 shamgod 阅读(173) 评论(0) 推荐(0)
摘要: 1. 2. 3. 4. 5. 6. 阅读全文
posted @ 2016-04-20 17:41 shamgod 阅读(128) 评论(0) 推荐(0)
摘要: 1. The answer to this question is that we have discussed and used two classic algorithms,mergesort and binary search, have introduced the facts that t 阅读全文
posted @ 2016-04-20 16:41 shamgod 阅读(930) 评论(1) 推荐(0)
摘要: For many programs, developing a mathematical model of running timereduces to the following steps:■Develop an input model, including a definition of th 阅读全文
posted @ 2016-04-20 15:00 shamgod 阅读(326) 评论(0) 推荐(0)
摘要: 1 package algorithms.util; 2 3 /****************************************************************************** 4 * Compilation: javac Directory.java 5 * Execution: java Directory dire... 阅读全文
posted @ 2016-04-20 11:56 shamgod 阅读(175) 评论(0) 推荐(0)
摘要: 1 /****************************************************************************** 2 * Compilation: javac MM1Queue.java 3 * Execution: java MM1Queue lambda mu 4 * Dependencies: Queue.j... 阅读全文
posted @ 2016-04-20 11:50 shamgod 阅读(453) 评论(0) 推荐(0)
摘要: Multi-word search. Program MultiwordSearch.java reads a sequence of query words q[1], ..., q[k] from the command line and a sequence of documents word 阅读全文
posted @ 2016-04-20 11:47 shamgod 阅读(287) 评论(0) 推荐(0)
摘要: 1 /****************************************************************************** 2 * Compilation: javac QueueWithTwoStacks.java 3 * Execution: java QueueWithTwoStacks { 17 private ... 阅读全文
posted @ 2016-04-20 11:39 shamgod 阅读(281) 评论(0) 推荐(0)
摘要: 1 package algorithms.ADT; 2 3 /****************************************************************************** 4 * Compilation: javac DoublyLinkedList.java 5 * Execution: java Dou... 阅读全文
posted @ 2016-04-20 11:21 shamgod 阅读(301) 评论(0) 推荐(0)
摘要: 1 /****************************************************************************** 2 * Compilation: javac EvaluateDeluxe.java 3 * Execution: java EvaluateDeluxe 4 * Dependencies: S... 阅读全文
posted @ 2016-04-20 10:39 shamgod 阅读(242) 评论(0) 推荐(0)
摘要: 1 package algorithms.fundamentals001; 2 3 import java.util.Locale; 4 import java.util.Scanner; 5 6 import algorithms.util.StdIn; 7 8 public class IsEquals { 9 10 // assume Unicode ... 阅读全文
posted @ 2016-04-20 10:26 shamgod 阅读(327) 评论(0) 推荐(0)
haha