Visualizing Map data using Python

maps In : import folium location1=[28.7041, 77.1025] #new delhi folium.Map( location=location1, tiles='Stamen Toner', zoom_start=13 ) Out: In : location2=[32.7266,74.8570] #jammu folium.Map( location=location2, tiles='Stamen Terrain', zoom_start=13 ) Out:

Generate permutations of a string in C++

This code uses Heap’s Algorithm(https://en.wikipedia.org/wiki/Heap%27s_algorithm) to generate all distinct. This algorithm can be written in any language but we provide implementation in C++ below. Following C++11 features are used: std::swap to swap string indices std::string to represent the string It is recommended that the following code be compiled on a …

Circle Generation Algorithm using Parametric Equation

This is a simple OpenGL Program to generate a circle using the parametric equation. The GLUT toolkit is used to make things easier. Parametric equation for circle is     The algorithm can be written as where and are coordinates of the center of the circle. The point P(x,y) is …

Generate Permutation Matrix in Numpy

Here we generate the Permutation matrix of any given permutation using Numpy. The permutation is inputted as a 2-dimensional array in the form of Cauchy 2 line form like shown below:         We now display the generated matrix as a numpy array of integers   Output: array([[1, …

Binary Search Tree in Python

This is a basic implementation of BINARY SEARCH TREE with insertion and traversal(in-order). Note: This code will be extended to include a complete implementation with additional features