Algorithms

Sorting, searching, and binary search Divide-and-conquer Dynamic programming and memorization Greedy algorithms Recursion Graph traversal, BFS and DFS Sorting Main algorithms presented Mergesort: Java sort for Objects Quicksort: Java sort for primitive types Heapsort Mergesort vs Quicksort vs Heapsort All these algorithms have O(N log N) average time complexity, though quicksort is O(N2) in the…

Data Structures

Data Structures

Good knowledge of common data structures is needed in computer science. This article describes common data structures, and present cost and benefits. Lists A List is an abstract data type representing a finite collection of ordered elements. Typically, a List is allocated dynamically depending on the implementation. For example, Array-based lists allocate elements in contiguous…

Eclipse import Filesystem

Eclipse import Filesystem

You need to import folders of your filesystem into Eclipse? Some possible motivations: You want to perform a full-text search on a directory in the filesystem You want to see the content of an existing project without importing it Assuming you have temp project, where you want to import the filesystem. Select from menu File…

Java 8 streams
|

Java 8 streams

Notes on practical usage of Java 8 stream filtering. Stream Filtering A Stream<T> references a sequence of T values, and exposes a set of aggregate operations we can use to manipulate data in a pipeline. As an example, we can find the name of any people older than 20. In java, you can loop on a variable using the…

Java Rest Service

Here are a few notes on how to run a simple java REST service and return JSON data as a response REST service to do provide data on products REST with jax-rs using Jersey We start creating a StoreContent class representing the products in an online store. Then, we add a container for our contents…

About Algorithms

Knowledge of algorithms and data structures is important for Software Engineers. To be good at solving problems you need practice. Here is some resource to make practice, and suggestions. Posts about Algorithms Below, you see the list of my posts about algorithms [catlist name=”algorithms”] Sites Sites to practice and learn algorithms and competitive programming LeetCode…