GithubHelp home page GithubHelp logo

java-native-implementation-of-popular-sorting-algorithms's Introduction

Java native api (JNI), implementation of popular sorting algorithms using Java, C and C++

Part 1 ( Sorting algorithms Java, native C, native C++ )

  • Merge sort
  • Quick sort
  • Heap sort
  • Insertion sort
  • Selection sort
  • Bubble sort

Part 2 ( Unit tests: Sorting algorithms Java, native C, native C++ )

  • Merge sort
  • Quick sort
  • Heap sort
  • Insertion sort
  • Selection sort
  • Bubble sort

Part 3

  • Write bash scripts for building Java, C and C++ src. code
  • Automate build with gradle + bash scripts
  • Add junit5 to project
  • Add log4j2 to project

Part 4 (S.O.L.I.D.)

  • Single principle (every entity should have responsibility over a single part of program's functionality.)
  • Open closed (entities should be open for extension, but closed for modification.)
  • Liskov substitution (if S is a subtype of T, then objects of type T may be replaced with objects of type S without altering any of the desirable properties of the program)
  • Interface segregation (no client should be forced to depend on methods it does not use)
  • Dependency inversion (High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions.) Example package sort with abstract entity SortAlgorithm

Part 5 (Design Patterns)

  • Abstract Factory (com.ivan.app.sort.SortAlgorithmFactory)

Gradle default + custom build lifecycles

Useful links

Part 6 (Build and run)

$ ./gradlew compileJava buildCSources buildCppSources copyCompileDeps build

java-native-implementation-of-popular-sorting-algorithms's People

Contributors

ivanpostu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.