Skip to content

Instantly share code, notes, and snippets.

View MinhasKamal's full-sized avatar

Minhas Kamal MinhasKamal

View GitHub Profile
/**
* Developer: Minhas Kamal (BSSE-0509, IIT, DU)
* Date: 13.Nov.2013
**/
#include <iostream>
#include <fstream>
#include <queue>
using namespace std;
/**
* Developer: Minhas Kamal (BSSE-0509, IIT, DU)
* Date: 01.Sep.2015
* Comment: This piece of program solves 8 puzzle problem using A* search algorithm.
**/
import java.util.Random;
public class AStarSearch {
int SWAP_WITH_TOP=0, SWAP_WITH_RIGHT=1, SWAP_WITH_BOTTOM=2, SWAP_WITH_LEFT=3;
/**
* Developer: Minhas Kamal (BSSE-0509, IIT, DU)
* Date: 06.Sep.2015
* Comment: This code solves n-Queen problem using genetic algorithm.
**/
import java.util.Random;
public class GeneticAlgorithm {
int boardSize;
/**
* Name: Minhas Kamal
* Date: 24-Mar-2014
**/
#include <iostream>
#include <fstream>
#include <queue>
/**
* Name: Minhas Kamal
* Date: 02-Apr-2013
**/
#include <stdio.h>
float sqrt(int i);
int main()
##Writer: Minhas Kamal
##Date: 01-MAY-2014
##Function: Finds prime numbers in a certain range.
##Technology: MIPS
#####**data**#####
.data
prompt: .asciiz "Enter your range: "
new_line: .asciiz "\n"
##Writer: Minhas Kamal
##Date: 02-MAY-2014
##Function: This program is a simple demonstration of stack.
##Technology: MIPS
#####**data**#####
.data
prompt: .asciiz "\n# What operation do you want to perform?\nPress-\t1.for push \n\t2.for pop \n\t3.for print all \n\t4.for exit \nSelection: "
prompt2: .asciiz "Enter the value: "
##Writer: Minhas Kamal
##Date: 03-March-2014
##Function: Takes a char input and prints if it is a vowel or constant
##Technology: MIPS
#####data#####
.data
prompt: .asciiz "Enter your character: "
##Writer: Minhas Kamal
##Date: 03-March-2014
##Function: Finds the highest and lowest integer from a definite number of integers
##Technology: MIPS
#####**data**#####
.data
prompt1: .asciiz "\n\nEnter number of integers: "
@MinhasKamal
MinhasKamal / ShortcutFixer.bat
Last active December 7, 2015 15:39
🔨 Fixes pendrive attacked by shortcut virus.
@echo ---------------------------------------------------------------
@echo Shortcut Fixer
@echo ---------------------------------------------------------------
@echo Instructions:
@echo 1. insert your pendrive
@echo 2. input your pen drive letter [**be very carefull**]
@echo ---------------------------------------------------------------
@pause
@echo.
@echo Enter drive letter: