资源简介

官网和csdn上很多同学都是直接上传的jar包,不太只管,此资源已经过整理,放到src下课直接运行

资源截图

代码片段和文件信息

/******************************************************************************
 *  Compilation:  javac-algs4 TestAlgs4.java
 *  Execution:    java-algs4 TestAlgs4 
 *  Dependencies: StdDraw.java
 *                http://introcs.cs.princeton.edu/mac/cover.jpg
 *  
 *  Draws a blue bullseye and textbook graphic.
 * 
 ******************************************************************************/

import edu.princeton.cs.algs4.StdDraw;

public class TestAlgs4 {
    public static void main(String[] args) {
        StdDraw.setScale(-1 1);
        StdDraw.clear(StdDraw.BLACK);
        
        StdDraw.setPenColor(StdDraw.WHITE);
        StdDraw.square(0 0 1);
        
        // write some text
        StdDraw.setPenColor(StdDraw.WHITE);
        StdDraw.text(0 +0.95 “Hello world! This is a test Java program.“);
        // StdDraw.text(0 -0.95 “Close this window to finish the installation.“);
        
        // draw the bullseye
        StdDraw.setPenColor(StdDraw.BOOK_BLUE);
        StdDraw.filledCircle(0 0 0.9);
        StdDraw.setPenColor(StdDraw.BLACK);
        StdDraw.filledCircle(0 0 0.8);
        StdDraw.setPenColor(StdDraw.BOOK_BLUE);
        StdDraw.filledCircle(0 0 0.7);
        StdDraw.setPenColor(StdDraw.BLACK);
        StdDraw.filledCircle(0 0 0.6);

        // draw a picture of the textbook        
        StdDraw.picture(0 0 “cover.jpg“ 0.65 0.80);
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      35147  2016-08-26 07:05  COPYING

     文件      29469  2016-08-26 07:05  cover.jpg

     文件       1409  2017-10-20 12:49  TestAlgs4.java

     文件       4963  2018-04-24 06:38  edu\princeton\cs\algs4\Accumulator.java

     文件       7247  2018-04-24 06:38  edu\princeton\cs\algs4\AcyclicLP.java

     文件       7025  2018-04-24 06:38  edu\princeton\cs\algs4\AcyclicSP.java

     文件       7472  2018-04-24 06:38  edu\princeton\cs\algs4\AdjMatrixEdgeWeightedDigraph.java

     文件       9075  2018-04-24 06:38  edu\princeton\cs\algs4\Alphabet.java

     文件       4075  2018-04-24 06:38  edu\princeton\cs\algs4\Arbitrage.java

     文件      11280  2018-04-24 06:38  edu\princeton\cs\algs4\AssignmentProblem.java

     文件       2828  2018-04-24 06:37  edu\princeton\cs\algs4\Average.java

     文件      27307  2018-04-24 06:38  edu\princeton\cs\algs4\AVLTreeST.java

     文件       5143  2018-04-24 06:38  edu\princeton\cs\algs4\Bag.java

     文件      12707  2018-04-24 06:38  edu\princeton\cs\algs4\BellmanFordSP.java

     文件       3443  2018-04-24 06:38  edu\princeton\cs\algs4\BinaryDump.java

     文件      12968  2018-04-24 06:38  edu\princeton\cs\algs4\BinaryIn.java

     文件       5262  2018-04-24 06:38  edu\princeton\cs\algs4\BinaryInsertion.java

     文件      11098  2018-04-24 06:38  edu\princeton\cs\algs4\BinaryOut.java

     文件       4631  2018-04-24 06:37  edu\princeton\cs\algs4\BinarySearch.java

     文件      15743  2018-04-24 06:38  edu\princeton\cs\algs4\BinarySearchST.java

     文件      10943  2018-04-24 06:38  edu\princeton\cs\algs4\BinaryStdIn.java

     文件      10035  2018-04-24 06:38  edu\princeton\cs\algs4\BinaryStdOut.java

     文件       9879  2018-10-27 09:32  edu\princeton\cs\algs4\BinomialMinPQ.java

     文件       8287  2018-04-24 06:38  edu\princeton\cs\algs4\Bipartite.java

     文件      14192  2018-04-24 06:38  edu\princeton\cs\algs4\BipartiteMatching.java

     文件       8846  2018-04-24 06:38  edu\princeton\cs\algs4\BipartiteX.java

     文件       3570  2018-04-24 06:38  edu\princeton\cs\algs4\BlackFilter.java

     文件       7977  2018-04-24 06:38  edu\princeton\cs\algs4\BoruvkaMST.java

     文件       6805  2018-04-24 06:38  edu\princeton\cs\algs4\BoyerMoore.java

     文件       8800  2018-04-24 06:38  edu\princeton\cs\algs4\BreadthFirstDirectedPaths.java

............此处省略176个文件信息

评论

共有 条评论