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 java.io.*; | |
public class SelectionSort{ | |
static int i; | |
static int temp,element; | |
//selection sorting done here | |
public static void SelectionSort(int[] arr,int n){ | |
//while condtion to check the loop and increment | |
int smallest = arr[0]; | |
int init = 0; |
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 time | |
import datetime | |
import os | |
import pandas as pd | |
from multiprocessing import Process, Queue, current_process | |
def do_something(fromprocess): | |
time.sleep(1) | |
print("Operation Ended for Process:{}, process Id:{}".format( | |
current_process().name, os.getpid() |
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
//brute force algorithm | |
//string matching | |
import java.io.*; | |
import java.util.Scanner; | |
class Bruteforce{ | |
//called function | |
public static int bruteforce(String text,String tobematched){ | |
int length = text.length();//length of the text | |
int plength = tobematched.length();//length of the pattern; |
OlderNewer