- Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
- Models and Issues in Data Stream Systems
- Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
- Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
- [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
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
| object GeoHash{ | |
| val base32 = "0123456789bcdefghjkmnpqrstuvwxyz" | |
| def encode( longtitude:Double, latitude:Double, range:Double) = { | |
| def asBit( d:Double,max:Double,min:Double ) : List[Boolean] = { | |
| val mid = ( max + min ) / 2 | |
| var res = ( d >= mid ) | |
| val (m,n) = if( res ) (max,mid) else (mid,min) | |
| if( Math.abs( m - n ) <= range ) | |
| res :: Nil |
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
| {-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving, TemplateHaskell, FlexibleInstances #-} | |
| {-# OPTIONS_GHC -Wall -fno-warn-missing-signatures #-} | |
| module QQAST where | |
| import Control.Applicative | |
| import Control.Exception | |
| import Control.Monad.State | |
| import Data.Data (Data) | |
| import Data.Generics (extQ) | |
| import Data.IORef |
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
| namespace YourNamespaceHere | |
| open System | |
| open System.Diagnostics | |
| open System.Threading | |
| open System.Threading.Tasks | |
| /// The 'Sync' builder for evaluating expressions in a synchronous style to aid debugging. | |
| type [<Sealed>] Sync () = | |
| member inline this.Bind (x, f) = f x | |
| member inline this.Return x = x |
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
| /// <summary> | |
| /// Stops keystrokes on a WPF Window or Adornment from propagating to the Visual Studio code editor. | |
| /// | |
| /// "The reason that keys like Backspace and Delete do not work in your WPF windows/Adornments is due to Visual Studio's usage of IOleComponentManager and IOleComponent. | |
| /// Visual Studio and WinForms both use IOleComponent as a way of tracking the active component in the application. | |
| /// | |
| /// WPF does not implement IOleComponent or use the IOleComponentManager for its windows. This means that when your WPF window is active, Visual Studio doesn't know that its | |
| /// primary component should not be processing command keybindings. Since "Backspace", "Delete", and several other keys are bound to commands for the text editor, | |
| /// Visual Studio continues processing those keystrokes as command bindings." | |
| /// |
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
| #time | |
| let inline sum list = | |
| match list with | |
| | [] -> LanguagePrimitives.GenericZero< 'T > | |
| | t -> | |
| let mutable acc = LanguagePrimitives.GenericZero< 'T > | |
| for x in t do | |
| acc <- Checked.(+) acc x | |
| acc |
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
| type Next<'T> = | |
| | Done of 'T | |
| | Jump of Trampoline<'T> | |
| and Trampoline<'T> = unit -> Next<'T> | |
| module Trampoline = | |
| let Return v : Trampoline<'T> = | |
| fun () -> | |
| Done v |
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
| <# | |
| var model = new Model () | |
| { | |
| Namespace = "MyNameSpace" , | |
| Unions = new [] | |
| { | |
| U ( "CustomerKind" | |
| , UC ("Person" , F ("string", "FullName"), F ("string", "SocialNo" ), F ("DateTime", "BirthDate" )) | |
| , UC ("Company", F ("string", "Name" ), F ("string", "CompanyNo"), F ("string" , "TaxNo" )) | |
| ), |
Copyright © 2016-2018 Fantasyland Institute of Learning. All rights reserved.
A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.
val square : Int => Int = x => x * xOlderNewer