Skip to content

Instantly share code, notes, and snippets.

View EvanWieland's full-sized avatar
🍀
Happening

Evan Wieland EvanWieland

🍀
Happening
View GitHub Profile
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
/* the list of integers */
int *list;
/* the threads will set these values */
double average;
/**
* Program that masks page number and offset from an
* unsigned 32-bit address.
* The size of a page is 4 KB = 4096 Bytes(4096 = 2^12 and so n = 12 bits)
* A memory reference appears as:
* |-----------|-----|
* 31 12 11 0
*/
#include <stdio.h>
@EvanWieland
EvanWieland / dfs-hill-climb.js
Created December 7, 2022 18:26
DFS & Hill Climb in NodeJS
/*
Evan Wieland
12/7/2022
Usage:
$ node dfs-hill-climb.js
> Would you like to run the tests or supply your own graph (y/n)?
> n