computation Questions

1

Solved

I was writing a method that would calculate the value of e^x. The way I implemented this in python was as follows. import math def exp(x): return sum([ x**n/math.factorial(n) for n in range(0, ...
Barto asked 28/6, 2022 at 7:10

1

This question is an extension on some computation details of this question. Suppose one has a set of (potentially overlapping) circles, and one wishes to compute the area this set of circles covers...
Washington asked 9/11, 2021 at 14:20

3

What is an example of a language over the alphabet {1}* which is recognizable but not decidable? I have troubles finding an example of this. After a long search, I am still curious for the answer ...
Tardif asked 2/12, 2012 at 19:23

2

Solved

I'm trying to estimate a model using speedglm in R. The dataset is large (~69.88 million rows and 38 columns). Multiplying the number of rows and columns results in ~2.7 billion which is outside th...
Pentangular asked 6/6, 2017 at 19:56

24

Solved

In class, we learned about the halting problem, Turing machines, reductions, etc. A lot of classmates are saying these are all abstract and useless concepts, and there's no real point in knowing th...
Elnaelnar asked 24/10, 2008 at 22:0

2

As far as I know, a Turing machine can be made to execute loops or iterations of instructions encoded on a Tape. This can be done by identifying Line separators and making the Turing machine go bac...

8

I have to write a server program that implements some fuzzy logic and I choose to write it in Node.js to take advantage of its event orientation. I have to work with difficult mathematic computatio...
Infusive asked 30/8, 2012 at 11:27

1

Solved

Given that 2 strings: String stringA = "WHATSUP"; String stringB = "HATS"; I want to find out whether each character in stringB H A T S exists in stringA In a junior approach, the process can b...
Lunch asked 5/8, 2016 at 17:26

2

Solved

This is just a series of questions regarding doing lots of computations. Either I couldn't find the answers online or I still need clarification. Is it faster to pass (float, float, float) as met...
Docilu asked 13/5, 2015 at 4:1

3

I'm writing a small system in Java in which i extract n-gram feature from text files and later need to perform Feature Selection process in order to select the most discriminators features. The Fe...

5

Solved

In reading about monads, I keep seeing phrases like "computations in the Xyz monad". What does it mean for a computation to be "in" a certain monad? I think I have a fair grasp on what monads are ...
Fissi asked 22/2, 2013 at 3:30

5

Solved

For a project I have a specification with formulas, I have to implement. In these formulas a cumulative standard normal distribution function exists, that takes a float and outputs a probability. T...
Thereinto asked 14/1, 2009 at 12:24

2

Solved

Curious if anyone used it. I did a simple EMA operation on a time series. But wasn't able to reconcile very well. I read that the value of the update constant = 2/(N+1). I defined x = 1:20, and d...
Bituminize asked 24/9, 2012 at 1:11

3

Solved

I have become rather interested in how computation is modeled in Haskell. Several resources have described monads as "composable computation" and arrows as "abstract views of computation". I've nev...
Veto asked 9/3, 2012 at 15:37

2

Given a bloom filter of size N-bits and K hash functions, of which M-bits (where M <= N) of the filter are set. Is it possible to approximate the number of elements inserted into the bloom filt...
Carine asked 1/2, 2012 at 21:2

2

Solved

Ehm ... I got a problem I've a certain calculation that result is over 10^-308 (the biggest value in double .net ) any way I solved this problem through a library called BIGFLOAT http://www.fracta...
Salify asked 21/4, 2011 at 0:49

4

Solved

The period of the Mersenne Twister used in the module random is (I am told) 2**19937 - 1. As a binary number, that is 19937 '1's in a row (if I'm not mistaken). Python converts it to decimal pretty...
Weakkneed asked 23/1, 2010 at 23:21
1

© 2022 - 2024 — McMap. All rights reserved.