Skip to content

Instantly share code, notes, and snippets.

View samagragupta's full-sized avatar
🎯
Focusing

Samagra Gupta samagragupta

🎯
Focusing
View GitHub Profile
%{
#include <cstdio>
#include "pikaC.tab.h" // to get the token types from Bison
#include <string.h>
#include <stdlib.h>
char* strdup (const char* s)
{
size_t slen = strlen(s);
char* result = (char*) malloc(slen + 1);
import random
global_hillClimbing = 1
global_beamSearch = 1
global_variableNeighbourhoodDescent = 1
def clauseGen(n, m, k):
var = []
clauses = []
doneVars = []
#include<bits/stdc++.h>
#include<iostream>
using namespace std;
const int MAX=26;
int main()
{
int k,n,m;
cout<<"k=";
cin>>k;
cout<<"n=";
class Node:
parent = None
def __init__(self,state):
self.state = state
def setParent(self,parent):
self.parent = parent
def Backtrack(p):
count=0
while p.parent!=None:
class Node:
parent = None
def __init__(self,state):
self.state = state
def setParent(self,parent):
self.parent = parent
def BackTrack(p):
class Node:
parent = None
def __init__(self,state):
self.state = state
def setParent(self,parent):
self.parent = parent
def Backtrack(p):
count=0
while p.parent!=None:
class Node:
parent = None
def __init__(self,state):
self.state = state
def setParent(self,parent):
self.parent = parent
def BackTrack(p):
class Node:
parent = None
def __init__(self,state):
self.state = state
def setParent(self,parent):
self.parent = parent
def BackTrack(p):
@samagragupta
samagragupta / Samagra.gif
Last active June 27, 2019 10:17
About myself
Samagra.gif