`
dmhorse
  • 浏览: 24725 次
  • 来自: ...
最近访客 更多访客>>
社区版块
存档分类
最新评论

Algorithms

J# 
阅读更多

//Inserting sort

int A[] = {3,43,34,21,7,56,2};
for (int i=1;i<A.length;i++){
  int key = A[i];
  loop: for(int j= i-1;j>=0;j--){
     if(A[j] > key){
       A[j + 1 ] = A[j];
      if ( j == 0)
         A[j] = key;
     }else{
        A[j+1] = key;
        break loop;
     }
}
 
分享到:
评论

相关推荐

    Introduction to Algorithms Third Edition

    there are even more algorithms, and algorithms lie at the heart of computing. This book provides a comprehensive introduction to the modern study of computer algorithms. It presents many algorithms ...

    Algorithms: Design and Analysis

    Harsh Bhasin, "Algorithms: Design and Analysis" English | ISBN: 0199456666 | 2015 | 692 pages Algorithms: Design and Analysis of is a textbook designed for the undergraduate and postgraduate ...

    Rigid Body Dynamics Algorithms Featherstone, Roy

    Rigid Body Dynamics Algorithms presents the subject of computational rigid-body dynamics through the medium of spatial 6D vector notation. It explains how to model a rigid-body system and how to ...

    Essential Algorithms A Practical Approach to Computer Algorithms Rod Stephens

    本书《Essential Algorithms A Practical Approach to Computer Algorithms Rod Stephens》深入浅出地介绍了计算机算法的基础知识、概念和应用实践,内容涵盖广泛,旨在为读者提供算法学习的实用指南。 在第1章...

    Fast Fourier Transform - Algorithms and Applications

    Title: Fast Fourier Transform - Algorithms and Applications Author(s): K.R. Rao, D.N. Kim, J.-J. Hwang (auth.) Series: Signals and Communication Technology Publisher: Springer Netherlands Year: ...

    Algorithms + Data Structures = Programs

    Algorithms + Data Structures = Programs[1] is a 1976 book written by Niklaus Wirth covering some of the fundamental topics of computer programming, particularly that algorithms and data structures are...

    Algorithms(Addison,4ed,Part I,2014)

    This book is Part I of the fourth edition of Robert Sedgewick and Kevin Wayne's Algorithms, the leading textbook on algorithms today, widely used in colleges and universities worldwide. Part I ...

    Algorithms (Jeff Erickson)

    ### Algorithms by Jeff Erickson #### 关于本书 《Algorithms》是Jeff Erickson撰写的一本算法教科书,该书最初起源于他在伊利诺伊大学厄巴纳-香槟分校教授的各种算法课程的讲义。自1999年起,Jeff每年都会教授一...

    Introduction.To.Algorithms,.Second.Edition

    algorithms. It presents many algorithms and covers them in considerable depth, yet makes their design and analysis accessible to all levels of readers. We have tried to keep explanations elementary ...

    Bioinformatics Algorithms: an Active Learning Approach, Vol. 1 (2nd edition)

    BIOINFORMATICS ALGORITHMS,VOL.I By 作者: Phillip Compeau – Pavel Pevzner ISBN-10 书号: 0990374610 ISBN-13 书号: 9780990374619 Edition 版本: 2nd 出版日期: 2015 pages 页数: 384 Overview Contents List...

    Python Data Structures and Algorithms [2017]

    Python Data Structures and Algorithms by Benjamin Baka English | 30 May 2017 | ASIN: B01IF7NLM8 | 310 Pages | AZW3 | 6.63 MB Key Features A step by step guide, which will provide you with a thorough...

    Data Structures, Algorithms and Applications in C++ Second Edition

    Data Structures, Algorithms and Applications in C++ Second Edition Sartraj Sahni | Universities Press 2005 | ISBN: 817371522X | PDF | 826 Pages | 27 MB Description The study of data structures and ...

    Algorithms Illuminated Part 3.pdf

    从提供的文件内容来看,《Algorithms Illuminated Part 3.pdf》是Tim Roughgarden所著的一本关于算法的书籍,属于一系列作品中的第三部。这本书主要介绍了贪心算法(Greedy Algorithms)和动态规划(Dynamic ...

    Convex Analysis and Minimization Algorithms II

    Convex Analysis and Minimization Algorithms II Advanced Theory and Bundle Methods Authors: Hiriart-Urruty, Jean-Baptiste, Lemarechal, Claude From the reviews: "The account is quite detailed and is ...

    Computer Age Statistical Inference: Algorithms, Evidence, and Data Science

    经典统计学图书:Cambridge University Press, 2016 ...Algorithms, Evidence, and Data Science Bradley Efron Trevor Hastie ISBN: 978-1107149892 --------------------------------- 图书主页: ...

    Operations Research Applications and Algorithms

    Operations Research Applications and Algorithms 4E

Global site tag (gtag.js) - Google Analytics