This file contains hidden or 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 Meluleki Dube | |
*/ | |
public class BinaryHeap { | |
private int heap[]; | |
private int index; |
This file contains hidden or 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 dube_ | |
*/ | |
public class BinaryHeap { | |
private int heap[]; | |
private int index; |
This file contains hidden or 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
#!/bin/sh | |
#SBATCH --account=icts | |
#SBATCH --partition=curie | |
#SBATCH --nodes=4 --ntasks=4 | |
#SBATCH --time=60:00 | |
#SBATCH --mem-per-cpu=1000 | |
#SBATCH --job-name="mpiqsrt" | |
#SBATCH [email protected] | |
#SBATCH --mail-type=BEGIN,END,FAIL |
This file contains hidden or 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
//code adapted from http://mpitutorial.com/tutorials/mpi-send-and-receive/ | |
#include <stdio.h> | |
#include <mpi.h> | |
#include <stdlib.h> | |
#define PING_PONG_LIMIT 8 | |
int main(int argc, char *argv[]){ | |
MPI_Init (&argc, &argv);//initilization | |
//find out the rank and size; |
This file contains hidden or 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
@inproceedings{Vanerio:2017:EAN:3098593.3098594, | |
author = {Vanerio, Juan and Casas, Pedro}, | |
title = {Ensemble-learning Approaches for Network Security and Anomaly Detection}, | |
booktitle = {Proceedings of the Workshop on Big Data Analytics and Machine Learning for Data Communication Networks}, | |
series = {Big-DAMA '17}, | |
year = {2017}, | |
isbn = {978-1-4503-5054-9}, | |
location = {Los Angeles, CA, USA}, | |
pages = {1--6}, | |
numpages = {6}, |
This file contains hidden or 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
% | |
% The first command in your LaTeX source must be the \documentclass command. | |
\documentclass[sigconf]{acmart} | |
% | |
% \BibTeX command to typeset BibTeX logo in the docs | |
\AtBeginDocument{% | |
\providecommand\BibTeX{{% | |
\normalfont B\kern-0.5em{\scshape i\kern-0.25em b}\kern-0.8em\TeX}}} |
This file contains hidden or 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
#py |
This file contains hidden or 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
#!/usr/bin/python3 | |
import spidev | |
import time as time | |
import RPi.GPIO as GPIO | |
import atexit | |
# import socket programming library | |
import socket |
This file contains hidden or 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
#!/usr/bin/python3 | |
# imports | |
import _thread | |
import spidev | |
import time as time | |
from array import * | |
from datetime import datetime, timedelta | |
import RPi.GPIO as GPIO | |
import atexit |
This file contains hidden or 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
/* we are going to use register r0 and r3 for indexes*/ | |
/* we will then use register r4 and r5 as temporal registers*/ | |
.global main | |
.func main | |
main: | |
MOV R0, #0 @ initialze index variable | |
mov r3, #0 |