This article describes about Creating Image Map in HTML. Basically, an image map allows to create clickable areas within an image. Sometimes we want that different parts of an image represent certain actions. In other words, when we click on a specific part of an image some specific action occurs. Hence, the image has some …
How to Implement Heap Sort in C#
This following article explains how to implement Heap Sort in C#. What is Heap Sort? In brief, Heap sort is a comparison-based sorting algorithm that sorts an array by using a binary heap data structure. Moreover, it’s an efficient and stable sorting algorithm. Evidently, it has a time complexity of O(n log n). Actually, the …
How to Implement Quick Sort in C#?
The following article describes How to Implement Quick Sort in C#. What is Quick Sort? It must be remembered that, Quick Sort is a divide-and-conquer algorithm for sorting an array of elements. It works by selecting a pivot element from the array and partitioning the other elements into two sub-arrays, depending on whether they are …
How to Implement Merge Sort in C#
This article explains How to Implement Merge Sort in C#. In fact, Merge Sort is a divide and conquer algorithm that sorts an array by recursively dividing it into two halves, sorting the two halves individually. Then merging the two sorted halves back into one final sorted array. Meanwhile, the merging process involves comparing elements …
Selection Sort in C#
This article explains Selection Sort in C#. Like Bubble Sort and Insertion Sort, Selection Sort is also a simple sorting technique. Furthermore, selection sort also works by dividing the list into sorted and unsorted part. Unlike, insertion sort, selection sort finds minimum element from the unsorted list and puts it at the beginning. Further, the …
Insertion Sort in C#
This article explains Insertion Sort in C#. Another simple sorting algorithm is the Insertion Sort. Basically, this algorithm works by first virtually dividing the list in two parts. While, the first part belongs to the sorted list, the other part is unsorted. Further, the agorithm picks an element from the unsorted part and inserts it …
Bubble Sort in C#
This article explains Bubble Sort in C#. Basically, Bubble Sort is the most simple sorting algorithm. In general, bubble sort works by scanning each element of a list. Further, it checks the order of adjacent elements in the list. If the algorithm finds that the adjacent elements are in wrong order, it swaps these elements. …
How to Create Instance Variables and Class Variables in Python
In this article I will explain How to Create Instance Variables and Class Variables in Python. Apart from class variables, and instance variables, we can also define variables within a method. In such a case, these variables are local variables and can be used within that method only. Further, we access the instance variables using …
HTML and Bootstrap Practice Questions
The following HTML and Bootstrap Practice Questions will help you learn the basics of web designing. Write HTML code to demonstrate different heading styles In order to demonstrate paragraph alignment, write an HTML code to display the different paragraphs with different alignment. Use at least three Container tags and empty tags. Since, we need to …
How to Implement Inheritance in Python
In this article I will explain How to Implement Inheritance in Python. In brief, inheritance allows the child class to inherit the properties of the parent class. While the parent class or the base class is the class that is being inherited. While the child class or the subclass is the class that inherits properties …