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
``` | |
#Hadoop | |
# Upload data into HDFS | |
hadoop fs -mkdir /user/movies | |
hadoop fs -put movies/u.data /user/movies | |
hadoop fs -put movies/u.item /user/movies | |
#Hive | |
# Load Hive |
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
<!-- | |
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ | |
/* ................jdWMMMMMNk&,...JjdMMMHMMHA+................ */ | |
/* .^.^.^.^.^.^..JdMMMBC:vHMMNI..`dMMM8C`ZMMMNs...^^.^^.^^.^^. */ | |
/* ..^.^..^.....dMMMBC`....dHNn...dMNI....`vMMMNy.........^... */ | |
/* .....^..?XMMMMMBC!..dMM@MMMMMMM#MMH@MNZ,^!OMMHMMNk!..^...^. */ | |
/* ^^.^..^.`??????!`JdN0??!??1OUUVT??????XQy!`??????!`..^..^.^ */ | |
/* ..^..^.....^..^..?WN0`` ` +llz:` .dHR:..^.......^..^... */ | |
/* ...^..^.^.^..^...`?UXQQQQQeyltOOagQQQeZVz`..^.^^..^..^..^.. */ | |
/* ^.^..^..^..^..^.^..`zWMMMMH0llOXHMMMM9C`..^.....^..^..^..^. */ |
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
Agents | |
====== | |
- Agent perceives its **environment** therough **sensors** and acts upon that environment through **actuators**. | |
- A **percept** refers to the agent's perceptual inputs at any given instant. | |
- An agent's **percept sequence** is the complete history of everything the agent has ever perceived. | |
- A **performance measure** evaluates any given sequence of environment states. It captures the notion of desirability. | |
Rationality | |
----------- |
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
#include<iostream> | |
#include<fstream> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<ctype.h> | |
using namespace std; | |
int isKeyword(char buffer[]){ |
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
// C program for different tree traversals | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* A binary tree node has data, pointer to left child | |
and a pointer to right child */ | |
struct node | |
{ | |
int data; | |
struct node* left; |
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
/* Iterative C program for merge sort */ | |
#include<stdlib.h> | |
#include<stdio.h> | |
/* Function to merge the two haves arr[l..m] and arr[m+1..r] of array arr[] */ | |
void merge(int arr[], int l, int m, int r); | |
// Utility function to find minimum of two integers | |
int min(int x, int y) { return (x<y)? x :y; } | |
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
/* Recursive C program for merge sort */ | |
#include<stdlib.h> | |
#include<stdio.h> | |
/* Function to merge the two haves arr[l..m] and arr[m+1..r] of array arr[] */ | |
void merge(int arr[], int l, int m, int r); | |
/* l is for left index and r is right index of the sub-array | |
of arr to be sorted */ | |
void mergeSort(int arr[], int l, int r) |
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
library IEEE; | |
use IEEE.STD_LOGIC_1164.ALL; | |
entity Ripple_Adder is | |
Port ( A : in STD_LOGIC_VECTOR (3 downto 0); | |
B : in STD_LOGIC_VECTOR (3 downto 0); | |
Cin : in STD_LOGIC; | |
S : out STD_LOGIC_VECTOR (3 downto 0); | |
Cout : out STD_LOGIC); | |
end Ripple_Adder; |