functionalprogram...
Follow
Find
674 views | +0 today
functionalprogramming
A news source for big, modular, rapid, stateless, performant source code.
Curated by Jay Vyas
Your new post is loading...
Your new post is loading...
Scooped by Jay Vyas
Scoop.it!

New Report: Polluters are dumping toxic chemicals into our waterways

New Report: Polluters are dumping toxic chemicals into our waterways | functionalprogramming | Scoop.it
Industrial facilities dumped 206 million pounds of toxic chemicals into American waterways in 2012, threatening both the environment and human health.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

How can dynamic programming be applied here? - Stack Overflow

However,I want to solve it using Dynamic Programming.However I am not able to think of ... answer you're looking for? Browse other questions tagged c++ algorithm logic dynamic-programming spoj or ask your own question.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Mark Watson's blog: Clojure vs. Scala smackdown

Mark Watson's blog: Clojure vs. Scala smackdown | functionalprogramming | Scoop.it
Although I have conflicted and undecided views on when to use Scala or Clojure, I do believe without a doubt that Rich Hickey and Martin Odersky have designed, implemented, and maintain two languages which blow "plain ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

algorithm - Is there any way to split a number with multiplication of ...

I am looking for an algorithm which help me to split a number N as like that. N = (p1a)(p2b).....*(pnz). where. N is the given number p is prime numbers ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

MArLy...: Interview Question: Reverse words in a sentence

MArLy...: Interview Question: Reverse words in a sentence | functionalprogramming | Scoop.it
Interview Question: Reverse words in a sentence. Have you ever been asked this question in ... Scripting, object-oriented, functional programming, commands, and the list could go on... Thanks to Andrew for providing such a ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

c++ - Optimizing algorithm to find number of six digit numbers ...

Problem: "An algorithm to find the number of six digit numbers where the sum of the first three digits is equal to the sum of the last three digits." I came across this problem in an interview and want to know the best solution.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

algorithm - Longest subsequence of S that is balanced - Stack ...

Given a string S of length n consisting of parentheses, suppose you want to find the longest subsequence of S that is balanced. Using dynamic programming, design an algorithm that finds the longest balanced subsequence ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Kevin's GATTACA World: CLC bio's new read mapping algorithm ...

Kevin's GATTACA World: CLC bio's new read mapping algorithm ... | functionalprogramming | Scoop.it
PhD Comics @phdcomics animated cartoon on #OpenAccess interview of me & Nick Shockey - I assume if you pay any attention to science satire/humor you are familiar with PhD Comics by Jorge Cham. ....
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

loops - Clojure variable constructed doseq - Stack Overflow

(ns word-generator ) (use 'clojure.string) (import 'java.io.File) (use 'clojure.java.io) (defn get-lines [fname] (with-open [r (reader fname)] (doall (line-seq r)))) (defn get-list [x lines] (first (remove nil?
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

How can I use clojure.core/bean recursively? - Stack Overflow

It is very tricky to find out what is a bean and what is not. This seems to do the trick for beans inside beans and properties that are lists. Probably you will want to add more classes to the probably-bean?
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Algorithms and Data Structures: My Overview

Algorithms and Data Structures: My Overview | functionalprogramming | Scoop.it
In other words, a greedy algorithm never reconsiders its choices. This is the main difference from dynamic programming, which is exhaustive and is guaranteed to find the solution. After every stage, dynamic programming ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Are tail recursion and dynamic programming the same? - Stack ...

This takes up more space/memory, but results in a faster algorithm. In the case of fibonacci, the dynamic programming solution would be to constantly add the last two elements in an array to get the next one.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

haskell - Are functions of arity-n really just an n-category due to ...

haskell - Are functions of arity-n really just an n-category due to ... | functionalprogramming | Scoop.it
In Haskell programming we often (pretend that we) work with the category Hask, whose objects are Haskell types and morphisms are Haskell functions. Applying that understanding to your example, I see that B and A are ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

HackageDB: pappy-0.1.0.2 - hackageDB - Haskell

Monadic combinators and lazy evaluation enable elegant and direct implementations of packrat parsers in recent functional programming languages such as Haskell. Three different packrat parsers for the Java language are ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

A pure game of life.

Pure functional programming is at the heart of scalable software design... Even when your not using a functional language.  If you've ever wondered why "learning a functional language might make you a better developer", then this post is for you.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Programming Interview: Graph Coloring using Backtracking ...

Programming Interview: Graph Coloring using Backtracking ... | functionalprogramming | Scoop.it
Programming Interview: Graph Coloring using Backtracking. October 22, 2012. This video lecture is produced by S. Saurabh. He is B.Tech from IIT and MS from USA. Propose an algorithm to color a given graph G(V,E) using minimum number ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

data structures - Is it safe to use a Clojure core.cache guarded by ref ...

I need a map that needs to be guarded against concurrent resources, ref type suits my case. Now I need a "time to live" policy to remove a potential entry that my code could forget to remove. I checked clojure.core.cache but ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Pithering About » Clojure at a Bank – Support

My last post covered the rationale behind our team at an investment bank wanting to make a switch to Clojure from Java. I want to write in this post about how we were supported in our efforts by those at the bank.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Lenses, Folds, and Traversals: Haskell Meet-up | Google Open ...

This paper pushed the boundaries of our understanding of how to build data-access features for programming languages that go beyond naıve access via simple APIs) by greatly generalizing member access (e.g.
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

algorithm - Coin Change (Dynamic Programming) - Stack Overflow

We usually the following recurrence relation for the coin change problem: (P is the total money for which we need change and di is the coin available). But cant we make it like this: (V is the given sorted set of coins available, ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Algorithm problems for dummies: Petr Mitrichev's blog: Petr Mitrichev ...

Algorithm problems for dummies: Petr Mitrichev's blog: Petr Mitrichev ... | functionalprogramming | Scoop.it
We can then use dynamic programming to find the minimum possible number of contradictions in the input data (places where we know the color of some cell but it's different from the actual cell we're on).
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Semantic programming: Haskell

The highlight: Haskell people don't know when they're shooting themselves in the foot because they can't remember what it's like to have a foot without a bullet wound. Posted by Michael at 11:06 AM. Labels: programming ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Real world functional iteration : An alternative to mutable intermediate data-structures.

Functional languages replace the need for mutability by providing us with convenient, idiomatic mechanisms for defining transformations without explicitly modifying or assigning variables.  This level of decoupling transparently provides us with...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

algorithm - Subset sum with special conditions - Stack Overflow

The numbers and the sum are huge (about 10^15), so dynamic programming won't work (The number of possible states is large so the memoization table would soon run out of memory). For the same reason the linear time ...
more...
No comment yet.
Scooped by Jay Vyas
Scoop.it!

Clojure Gazette 1.22 (haskell+clojure)

Clojure Gazette 1.22 (haskell+clojure) | functionalprogramming | Scoop.it

Integrating the concepts of haskell and clojure in a single post.   Excellent learning material.

more...
No comment yet.