Algorithms

- Algorithms, BFS, Binary Tree, cpp-map, cpp-queue, cpp-random, Queue, Randomized, Tree

Test Case Generation | Set 6 (Random Unweighted Binary Tree)

  #include using namespace std;    vector generateBinaryTree(int n){                        vector options = { 0, 1, 2 };                        map mp;                queue q;            q.push(1);            vector v;                int count = 1;                mp[1] =…

Read More

- Algorithms, Computer Networks, cryptography, Hash, Java-Functional Programming

Implement Secure Hashing Algorithm – 512 ( SHA-512 ) as Functional Programming Paradigm

#include using namespace std;typedef unsigned long long int int64;  int64 Message[80];  const int64 Constants[80]    = { 0x428a2f98d728ae22, 0x7137449123ef65cd,        0xb5c0fbcfec4d3b2f, 0xe9b5dba58189dbbc,        0x3956c25bf348b538, 0x59f111f1b605d019,        0x923f82a4af194f9b, 0xab1c5ed5da6d8118,        0xd807aa98a3030242, 0x12835b0145706fbe,        0x243185be4ee4b28c, 0x550c7dc3d5ffb4e2,        0x72be5d74f27b896f,…

Read More