Paul Richard has Published 76 Articles

How to call a parent window function from an iframe using JavaScript?

Paul Richard

Paul Richard

Updated on 08-Jan-2020 06:27:14

2K+ Views

To call a parent window function, use “window.top”.ExampleYou can try to run the following code to call a parent window function from an iframeLive Demo                    function display(){             alert("Hello World!");          }                      Click          

How to add a number of months to a date using JavaScript?

Paul Richard

Paul Richard

Updated on 07-Jan-2020 11:00:57

484 Views

To add a number of months to a date, first get the month using getMonth() method and add a number of months.ExampleYou can try to run the following code to add a number of monthsLive Demo                    var d, e; ... Read More

C++ Program to Check whether Graph is a Bipartite using BFS

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:25

566 Views

A bipartite graph is a graph in which if the graph coloring is possible using two colors i.e; vertices in a set are colored with the same color. This is a C++ program to Check whether a graph bipartite or not using BFS.AlgorithmBegin    Function Bipartite():    1) Assign a ... Read More

C++ Program to Find Inverse of a Graph Matrix

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:25

6K+ Views

This is a C++ program to Find Inverse of a Graph Matrix. Inverse of a matrix exists only if the matrix is non-singular i.e., determinant should not be 0. Inverse of a matrix can find out in many ways. Here we find out inverse of a graph matrix using adjoint ... Read More

C++ Program to Check Whether a Hamiltonian Cycle or Path Exists in a Given Graph

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:25

1K+ Views

A Hamiltonian cycle is a Hamiltonian Path such that there is an edge (in graph) from the last vertex to the first vertex of the Hamiltonian Path. It is in an undirected graph is a path that visits each vertex of the graph exactly once.Functions and purposes:Begin    1.function isSafe() ... Read More

C++ Program to Find Chromatic Index of Cyclic Graphs

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:25

406 Views

The chromatic index is the maximum number of color needed for the edge coloring of the given graph. This is a C++ Program to Find Chromatic Index of Cyclic Graphs.AlgorithmBegin    Take the input of the number of vertices ‘n’ and number of edges ‘e’.    Take the input of ... Read More

C++ Program to Generate All Subsets of a Given Set in the Lexico Graphic Order

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:25

298 Views

This is C++ Program to Generate All Subsets of a Given Set in the Lexico Graphic Order. This algorithm prints all the possible combination of each length from the given set of array in increasing order. The time complexity of this algorithm is O(n*(2^n)).AlgorithmBegin    For each length ‘i’ GenAllSubset() ... Read More

C++ Program to Perform Edge Coloring of a Graph

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:25

477 Views

In this program, we will perform Edge Coloring of a Graph in which we have to color the edges of the graph that no two adjacent edges have the same color. Steps in Example.AlgorithmBegin    Take the input of the number of vertices, n, and then number of edges, e, ... Read More

How is Java platform independent?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:23

397 Views

When you compile Java programs using javac compiler it generates bytecode. We need to execute this bytecode using JVM (Java Virtual machine) Then, JVM translates the Java bytecode to machine understandable code. You can download JVM's (comes along with JDK or JRE) suitable to your operating system and, once you ... Read More

How JVM works?

Paul Richard

Paul Richard

Updated on 30-Jul-2019 22:30:23

209 Views

Following are the key components and their responsibility in JVM. Classloader − Loads the class file into the JVM. Class Area − Storage areas for a class elements structure like fields, method data, code of method etc. Heap − Runtime storage allocation for objects. Stack − Storage for ... Read More

Advertisements