Skip to main content

Posts

Sorting Algorithms  : A Comprehensive Guide

Sorting Algorithms  : Explained With Illustrations Sorting is the process of structuring data in a specific format. The sorting algorithm explicitly states how to arrange data in a specific order. The most popular orders are numerical or lexicographical. When humans understood the importance of searching speedily, they coined the term sorting. The significance of sorting stems from the fact that if data is stored in a sorted manner, data searching can be optimized to a very high level. Sorting is also used to make data more readable. The following are a few examples of sorting in real-world scenarios. 1. Telephone Directory: The telephone directory stores people’s phone numbers alphabetically so that the names can be easily searched. 2. Dictionary: Words are stored in alphabetical order in the dictionary, making it easy to find any word. Sorting algorithms can be classified into two types. Integer sorts Comparison sorts Integer sorts Counting sorts are another name for integer sort...

Dead Reckoning

When it is the beginning , the navigator is clearly aware of the position/location. When he starts to move (in the mid-sea or mid sky), he can get some known (measured) factors other than the position/location in terms of a fixed landmark . They are, The direction of movement (by using a compass) Speed of movement Time taken to reach each heading Using all this information, the navigator calculates the distance and route which he has covered and keeps track of his movement by plotting a nautical chart ( also called a sea chart). This technique is known as Dead reckoning . In brief, Dead recko ning is a process to determine the position of the navigator (sailing a ship or flying an aircraft) using the record of courses that have been sailed (or flown), the distance covered (by using the velocity in which he has traveled and time taken to reach the next course from the previous course), known point (the previous point is the known point) and the estimated or known or approximated ...

The Very Basic 15 SQL Commands That You Should Know

SQL commands are the instructions used to communicate with a database to perform tasks, functions, and queries with data. In this article, we will be discussing some basic Structured Query Language (SQL) commands with example queries. Before going into that, let’s see the language elements in a SQL Query. Keywords — Reserved (SELECT, COUNT, and etc.), or non-reserved (ASC, DOMAIN, KEY, and etc.). Identifiers — Names on database objects, like tables, columns, and schemas. Clauses — Sometimes optional. These are the constituent components of statements and queries. Expressions — This produces either scalar values, or tables consisting of columns and rows of data. Predicates — This specifies conditions that can be evaluated to SQL three-valued logic such as true/false/unknown. Operators — Arithmetic operators, Concatenation operator, and Comparison operators. Queries — An important element that retrieves the data based on specific criteria. Statements — These may have a persistent effect ...

The USA and the Middle East

How Did the USA Place Its Firm Grip on the Middle East? We all know about the USA and the Middle East, their history, existence on the world map, leaders, and etc. Check out the following world map. The USA's location is The Middle East's location is You can see the distance in between the two are is really huge and we are going to see what made the USA get interested in this desert area. Do You Think That the Outcome of a War Is Always Blood and Death? If you are thinking that way, you are totally wrong. From a military point of view, at the end of a war, you will learn from your strength and weaknesses. You can find the required capabilities that are highly needed for the next combat. The experience you've gained from a war is always unteachable using books and theories.  We've learned a lot and made a lot due to the World Wars and the Cold War. Can you agree to that? It is obvious that people usually focus on the devastations rather than the constructive matters. Jus...