JIYIK CN >

Current Location:Home > Learning > ALGORITHM >

All

Fibonacci Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Fibonacci search is an efficient interval search algorithm. It is similar to binary search in that it is also based on a divide-and-conquer strategy and also requires the array to be sorted. In addition, the time complexity of both algorith...

Full

Jump Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Skip search is a range search algorithm. It is a relatively new algorithm that works only on sorted arrays. It tries to reduce the number of comparisons required compared to linear search by not scanning every element like linear search. In...

Full

Index Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Exponential search, also known as doubling search or finger search, is an algorithm created for searching elements in large arrays. It is a two-step process. First, the algorithm tries to find the range in which the target element exists (L,...

Full

Linear Search

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Linear search is the simplest search algorithm. It is also called sequential search because in this algorithm, we look for the matching element by going through the entire array and comparing each element with the required item. If the requ...

Full

Tim Sort

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Tim sort is a hybrid stable sorting algorithm. It is a hybrid algorithm derived from insertion sort and merge sort . It first uses insertion sort to sort subarrays, these small sorted subarrays are called natural runs. Then merge sort is us...

Full

How to use Composite Design Pattern in Java?

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

How to use Composite Design Pattern in Java?

Hello Java programmers, if you want to learn about Composite Design Pattern in Java , such as how to implement Composite Design Pattern and when to use it, then you have come to the right place. In this article, we will discuss Composite De...

Full

Observer Design Pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Observer design pattern in Java is a basic core Java pattern where the Observer monitors any changes in the state or properties of the Subject . For example, a company updates all shareholders about any decision taken by them here the compa...

Full

Adapter vs Decorator vs Facade vs Proxy Design Pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

There are some striking similarities between the Adapter, Decorator, Facade, and Proxy design patterns as they all use composition and delegation to solve problems. The Adapter pattern wraps an interface and delegates calls to it. Decorator...

Full

How to use the State Design Pattern in Java?

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

How to use the State Design Pattern in Java?

The State design pattern is a behavioral pattern. The State pattern looks similar to the Strategy pattern, but it helps in managing the object states so that they behave differently in different states. In this example, we will take a famou...

Full

How to implement the Command Design Pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Hello everyone, today, we will learn an important design pattern which is often overlooked by Java developers. Yes, I am talking about the Command pattern which helps us write flexible and loosely coupled code to implement actions and event...

Full

Java Decorator Design Pattern Example

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

Hello everyone, if you want to learn about Decorator Design Pattern in Java , then you have come to the right place. As design patterns are very important while building software and equally important in any core Java interview, it is alway...

Full

How to use the Adapter design pattern in Java

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

The Adapter design pattern in Java , also known as the Wrapper pattern, is another very useful GOF pattern that helps bridge the gap between two classes in Java. According to the Gang of Four pattern list, Adapter is a structural pattern, m...

Full

How to implement the singleton pattern in JavaScript ES6+

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

In this article, we will show you how to implement the singleton pattern in JavaScript. If we are a full-stack JavaScript developer, we know that JavaScript is a powerful language and we can build amazing websites with it. On the other hand...

Full

How to implement binary search in Java without recursion?

Publish Date:2025/03/19 Author:JIYIK Category:ALGORITHM

How to implement binary search in Java without recursion?

Hey Java programmers, if you want to implement binary search in Java and looking for iterative and recursive binary search algorithms, then you have come to the right place. Today I am going to teach you an important algorithm. In computer...

Full

Binary Search Tree Check

Publish Date:2025/03/18 Author:JIYIK Category:ALGORITHM

A binary tree is a non-linear data structure. It is called a binary tree because each node has at most two children. These children are called left children and right children. For a binary tree to be a BST, it must satisfy the following pr...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial