Category Archives: Core Java

This Category contains all the posts related to Core Java

Classification of Sorting Algorithms

In this post, we will talk about different Classification of Sorting Algorithms. Classification of Sorting Algorithms: By Number of Comparisons In this method, Sorting algorithms are usually classified based on the number of comparisons. For comparison-based sorting algorithms best-case behavior is O(n log n) and worst-case behavior is O(n2). Comparison-based sorting algorithms evaluate the elements of… Read More »

Important Types of Graph Data Structure

In this post, We will discuss some important Types of Graph Data Structures 1.Directed Graph All the edges have directed Example: Route Network 2.Undirected Graph All the edges have undirected Example: Flight network 3.Weighted Graph In Weighted graphs, integers (weights) are assigned to each edge to represent (distance or cost)   You May Also Like:… Read More »