The median is the element in the middle of a dataset when the dataset is sorted. The Median of Medians algorithm is a powerful technique that is used to find out the median element in an unsorted array. In this article, we will implement median of medians algorithm in golanguage, using two methods like the recursive method and the iterative method. Explanation The Median of Medians algorithm, an efficient technique for determining the median value in an unsorted array. It introduces two distinct methods: the recursive approach and the iterative approach. Recursive Method: The findMedianRecursive function is introduced to ... Read More
The Rabin−Karp algorithm in Golang is a powerful string searching algorithm used to efficiently locate a pattern within a larger text. In this article, we need to implement Rabin Karp algorithm in golanguage that will enable efficient pattern matching and showcasing the flexibility of this algorithm in Golang. We can use methods like the single function approach as well as using the modular approach. Pattern Matching Let us assume we have the text: “ABCABCDABCABC” and the pattern “ABC”, so by implement Rabin Karp algorithm in golanguage we can find out how many times and where this pattern repeat itself in ... Read More
In MATLAB, we can create different types of graphical user interface (GUI) components like Edit Fields, Hyperlinks, Buttons, and more. In this tutorial, we shall confine our attention to add a ButtonGroup in MATLAB. What is a ButtonGroup in MATLAB? MATLAB is an environment that provides an easy way of creating GUI applications without proper knowledge of computer programming. In MATLAB, there is a graphical user interface (GUI) component namely, ButtonGroup, which allows us to create a group of radio buttons or option buttons. One can select only one radio button within the group at a time. This GUI component ... Read More
Let us start this tutorial with a brief discussion on "what is inverse of a square matrix" and "the significance of Cayley Hamilton theorem". What is Inverse of Square Matrix? In linear algebra, there is a fundamental concept called the inverse of a square matrix. Consider a square matrix ‘A’, then there will another square matrix ‘A-1’ such as A.A-1 = I, where I is an identity matrix. Here, A-1 is called the inverse of the square matrix A. It is an important point to note that for a given square matrix the inverse can be found if and only ... Read More
Indexing in Apache Cassandra is a way to improve the efficiency and performance of queries on non-primary key columns. In Cassandra, data is organized in tables and each table has a primary key, which consists of one or more columns that uniquely identify each row in the table. Queries that use the primary key to retrieve data are very efficient, but queries that use other columns in the WHERE clause can be slower. Cassandra has secondary indexes that enable querying on columns other than the main key columns to solve this problem. A secondary index is built on a table's ... Read More
Open Database Connectivity (ODBC) is a common API (Application Programming Interface) that enables programmes to connect to different database management systems (DBMS) using a standardised interface. Regardless of how a database's native interface is configured, the ODBC interface offers a consistent mechanism for programmes to communicate with it. The connectivity of ODBC, including its design, drivers, and connections, will be examined in more detail in this article. ODBC Architecture Flow Diagram of ODBC Architecture The three primary parts of the ODBC architecture are the application, the ODBC Driver Manager, and the ODBC driver. Each piece of software that needs ... Read More
Cassandra is a NoSQL database that is made to manage massive volumes of data over several nodes and is extremely scalable. Data distribution over numerous nodes in a cluster, which enables high availability and fault tolerance, is one of Cassandra's core characteristics. In this post, we'll go through the syntax and examples for configuring Cassandra clusters. Configuring a Cassandra Cluster Let's first talk about the fundamental structure of a Cassandra cluster before getting into the specifics of constructing one. Many nodes, each of which can either be a seed node or a normal node, make up a Cassandra cluster. The ... Read More
Overview A flip toggle switch is a “on / off” like switch which changes the state of the HTML element from one form to another. By using the jQuery mobile we can create a responsive attractive flip toggle switch. So to create a flip toggle jQuery provides an attribute value as “fieldcontain”, this value is set to the attribute named as data−role. The data−role attribute is set to the fieldcontain in a div container which provides the property to the container as flip toggle switch. To create a basic flip toggle use the data−role value as a slider in the ... Read More
In general, blur is a visual effect of human eye that happens when the viewer cannot be able to see the details of the object clearly. In HTML, we can apply the blur effect to elements on webpage (such as images) using CSS properties. To do so, we use the filter property along with the blur() function. This function applies a Gaussian blur effect to the image element, which makes it softer and less defined. Syntax Following is the syntax of the filter property with blur() function − filter: blur(radius); This function accepts a single parameter (i.e. radius) that ... Read More
In conclusion, creating a Cassandra cluster entails selecting the seed nodes, setting the replication factor, configuring the IP addresses and ports for each cluster node, as well as additional configuration options like the cluster name. The main configuration file for Cassandra clusters is the cassandra.yaml file. Cassandra clusters may offer high availability and fault tolerance for massive volumes of data with the proper configuration. You may effectively configure a Cassandra cluster to suit your unique requirements by adhering to the syntax and examples shown in this article. Syntax UPDATE table_name SET column1 = value1, column2 = value2, ... WHERE condition; ... Read More