Arnab Chakraborty has Published 4293 Articles

C program for file Transfer using UDP?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 12:18:08

1K+ Views

Data can be shifted between two computers implementing Socket programming in C.In same case, files can easily be sent implementing User Datagram Protocol(UDP) and a simple client/server.Security − Handled by encryption.Protocol − UDPEncryption − XOR encryptionAlgorithmThe server is started and waited for filename.A filename is sent by the client.This filename ... Read More

Binary Tree to Binary Search Tree Conversion using STL set C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 12:11:48

726 Views

In case of a given Binary Tree, convert it to a Binary Search Tree in such a way that keeps the original structure of Binary Tree intact.Sets of C++ STL will be used by this solution instead of array based solution.ExamplesExample 1Input     11     /  \    3 ... Read More

Binomial Heap in C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 12:10:57

499 Views

Binomial Heap is defined as an extension of Binary Heap that provides faster merge or union operation together with other operations provided by Binary Heap.A Binomial Heap is treated as a collection of Binomial Trees.What is a Binomial Tree?A Binomial Tree of order k can be built by taking two ... Read More

Binary Number System - Overflow in Arithmetic Addition in C/C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 11:43:59

876 Views

2’s Complement Number System is widely implemented in computer architecture.N-bit 2’s Complement number System can be able to represent Number from -2n-1 to 2n-1- 14 Bit can be able to represent numbers from ( -8 to 7 )5 Bit can be able to represent numbers from ( -16 to 15 ... Read More

Binary Indexed Tree or Fenwick Tree in C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 11:11:23

448 Views

In case of comparing with a flat array of numbers, the Fenwick tree results a much better balance between two operations: element update and prefix sum computation. In case of a flat array of m numbers, we can either store the elements, or the prefix sums. In case of first ... Read More

Bin Packing Problem (Minimize number of used Bins) in C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 11:08:42

4K+ Views

In case of given m elements of different weights and bins each of capacity C, assign each element to a bin so that number of total implemented bins is minimized. Assumption should be that all elements have weights less than bin capacity.ApplicationsPlacing data on multiple disks.Loading of containers like trucks.Packing ... Read More

Barabasi Albert Graph (for Scale Free Models) in C/C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 11:00:00

297 Views

The Barabási-Albert model is treated as one of several proposed models that produce scale-free networks. It combines two important general concepts: growth and preferential attachment. Both concepts i.e. growth and preferential attachment have wide existence in real networks. The meaning of growth is that the number of nodes in the ... Read More

Balanced expressions such that given positions have opening brackets in C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 10:57:50

219 Views

In case of a given integer m and an array of positions ‘position[]’ (1

Autorun a Python script on windows startup?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 10:43:54

1K+ Views

Appending a Python script to windows start-up basically indicates the python script will run as the windows boots up. This can be accomplished by two step processes -Step #1: Appending or Adding script to windows Startup folderAfter booting up of the windows, it executes (equivalent to double-clicking) all the application ... Read More

Arrange a binary string to get maximum value within a range of indices C/C++?

Arnab Chakraborty

Arnab Chakraborty

Updated on 29-Jan-2020 08:14:40

255 Views

In case of a given string consisting of only 0’s and 1’s, we are given M non-intersecting ranges A, B( A

Advertisements