This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import random | |
def Bx(t, px, n): | |
if n == 1: | |
return px[0] | |
else: | |
return (1-t)*Bx(t, px[:n-1],n-1) + t*Bx(t, px[1:],n-1) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Harsh Gupta */ | |
/* 12MA20017 */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct node{ | |
struct node * parent; | |
struct node * left_child; | |
struct node * right_child; | |
int key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "opencv2/core/core.hpp" | |
#include "opencv2/imgproc/imgproc.hpp" | |
#include "opencv2/highgui/highgui.hpp" | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int main(int argc, char ** argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Harsh Gupta | |
// Date: 11 November 2013 | |
// Implementation of Bellman Ford Algorithm | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#define V 6 // Max Size of The Matrix | |
const float inf = 99999; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Harsh Gupta | |
// Date: 12 November 2013 | |
// Implementation of Prim's algorithm to find the minimum spanning tree | |
// on a Undirected Graph | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#define V 6 // Max Size of The Matrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Harsh Gupta | |
// Date: 12 November 2013 | |
// Implementation of Kruskal algorithm to find the minimum spanning tree | |
// on a Undirected Graph | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#define V 6 // Max Size of The Matrix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test process starts ============================== | |
executable: /usr/bin/python (2.7.3-final-0) [CPython] | |
architecture: 64-bit | |
cache: yes | |
ground types: gmpy 1.17 | |
random seed: 61988006 | |
hash randomization: on (PYTHONHASHSEED=1473891933) | |
sympy/assumptions/tests/test_assumptions_2.py[5] ..... [OK] | |
sympy/assumptions/tests/test_context.py[4] .... [OK] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project( DisplayImage ) | |
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall -Wextra -pedantic -g -O3 -std=c++0x") | |
endif() | |
find_package( OpenCV REQUIRED ) | |
include_directories( ${OpenCV_INCLUDE_DIR} ) | |
add_executable(hog hog.cpp ) | |
target_link_libraries( hog ${OpenCV_LIBS} ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There were a bunch of people sitting on the mattress, playing cards. | |
They were having a good old laugh. | |
Even when they were not drinking from the glass. | |
But that wasn't a scene that would last. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================= test process starts ============================== | |
executable: /usr/bin/python (2.7.3-final-0) [CPython] | |
architecture: 64-bit | |
cache: yes | |
ground types: gmpy 1.17 | |
random seed: 60443508 | |
hash randomization: on (PYTHONHASHSEED=169529529) | |
sympy/solvers/tests/test_solve_univariate.py[45] ........fffffffffffffffffffffff | |
ffffE......... [FAIL] |
OlderNewer