Quantcast
Channel: 未分类 –懒得折腾
Browsing all 756 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Algorithms II: 3-way radix quicksort

Suppose that you run 3-way radix quicksort (do not shuffle) on the following array of 12 strings: 7637 8658 3548 2618 4264 8833 6517 4646 8688 7571 7116 3617 What is the array immediately after the...

View Article


Image may be NSFW.
Clik here to view.

Algorithms, Part II Assignment 3

Programming Assignment 3: Baseball Elimination Given the standings in a sports division at some point during the season, determine which teams have been mathematically eliminated from winning their...

View Article


Image may be NSFW.
Clik here to view.

Computational Photography Programming Assignment 3 – Image

import numpy as np import scipy.signal import cv2 def generating_kernel(a): '''Return a 5x5 generating kernel with parameter a. ''' w_1d = np.array([0.25 - a/2.0, 0.25, a, 0.25, 0.25 - a/2.0]) return...

View Article

Image may be NSFW.
Clik here to view.

Dining philosophers problem

package posa import scala.actors.Actor /** * Actor representing a philosopher. * When receives message n, will eat n times and terminate. Eat sequence: * 1. picks up left chopstick (may block until...

View Article

Image may be NSFW.
Clik here to view.

Learn to Program: Crafting Quality Code

# Do not import any modules. If you do, the tester may reject your submission. # Constants for the contents of the maze. # The visual representation of a wall. WALL = '#' # The visual representation...

View Article


Image may be NSFW.
Clik here to view.

The Hardware/Software Interface Lab 1

Lab 1: Instructions When you’re ready to submit your solution, go to the assignments list. Lab 1: Manipulating Bits Using C Overview The purpose of this assignment is to become more familiar with data...

View Article

Image may be NSFW.
Clik here to view.

Algorithms, Part II Assignment 4

COS 226 Programming Assignment Burrows-Wheeler Data Compression Algorithm Implement the Burrows-Wheeler data compression algorithm. This revolutionary algorithm outcompresses gzip and PKZIP, is...

View Article

Image may be NSFW.
Clik here to view.

Computational Photography Programming Assignment 4 – Video Textures

part0 import numpy as np import cv2 def video_volume(image_list): '''Create a video volume from the image list. Input: image_list - a list of frames. Each element of the list contains a numpy array of...

View Article


Image may be NSFW.
Clik here to view.

MOE Interactive Maps Unsolved issues

1. Wells Record Data’s French translation “Puit enregistrer des données” is not correct. 2. m.a.s.l in PGMN water level is English. French translation is required. 3. PGMN Chemistry data has a long text.

View Article


Image may be NSFW.
Clik here to view.

OPS Dental and Medical insurance

http://www.opseu.org/ops/benefits/ Plan Name: Dental OPSEU – ER Plan Provider: Great West Life Assurance Co. Coverage: Employee Only Group Number: 330021 Customer Service: Ext: Plan Name:...

View Article

Image may be NSFW.
Clik here to view.

Algorithms, Part II Interview Questions

Interview Questions: Undirected Graphs Question 1 Nonrecursive depth-first search. Implement depth-first search in an undirected graph without using recursion. Your Answer Score Explanation Total 0.00...

View Article

Image may be NSFW.
Clik here to view.

Algorithms, Part II Linear Programming Exercise

Feedback — Linear Programming You submitted this quiz on Wed 1 May 2013 1:51 PM PDT -0700. You got a score of 2.80 out of 3.00. You can attempt again, if you’d like. To specify an array or sequence of...

View Article

Image may be NSFW.
Clik here to view.

Pattern-Oriented Software Architectures for Concurrent and Networked Software...

ATTN: As with all peer-assessments, you will receive the average of your 4 scores.  For the programming assignments, you will receive the maximum score out of the ones you submit (so if you get 30/30...

View Article


Image may be NSFW.
Clik here to view.

The Hardware/Software Interface Lab 2

Lab 2: Instructions   When you’re ready to submit your solution, go to the assignments list.     Lab 2: Disassembling and Defusing a Binary Bomb Overview The nefarious Dr. Evil has planted a slew of...

View Article

Image may be NSFW.
Clik here to view.

Algorithms, Part II Final Exam Part II

Final Exam Part II The due date for this quiz is Mon 20 May 2013 8:59 AM PDT -0700. To specify an array or sequence of values in an answer, you must separate the values by a single space character...

View Article


Image may be NSFW.
Clik here to view.

PGMN and PWQMN test cases

PGMN test case: search W0000036-1 and make sure the Chemistry tab contain the sample date of 31/10/2011. search W0000001-1 and make sure the water level chart has the data between 2011 and 2012. search...

View Article

Image may be NSFW.
Clik here to view.

why parseInt(’08′) is giving 0, whereas parseInt(’07′) is giving 7

I am working on javascript, and I seem to find this strange, that the javascript function parseInt(’08′) is returning 0 and parseInt(’07′) is returning 7. this behavior seems to be there in Firefox....

View Article


Image may be NSFW.
Clik here to view.

QT + OpenCV

QT Console   #include <opencv2/opencv.hpp> //#include <opencv2/highgui/highgui.hpp> int main(int argc, char *argv[]) { cv::Mat image = cv::imread("img.jpg"); cv::namedWindow("My Image");...

View Article

Image may be NSFW.
Clik here to view.

Calculate Primes

// Fibonacci // http://en.wikipedia.org/wiki/Fibonacci_number var isPrime = function(n, arr) { for (var i = 0; i < arr.length; i++) { if (arr[i] > Math.sqrt(n)) { break; } if ((n % arr[i]) == 0)...

View Article

Image may be NSFW.
Clik here to view.

The Battle of Modern Javascript Frameworks

The Battle of Modern Javascript Frameworks – Part I Posted April 10, 2013 by Bradley Trager and Roman Kagan & filed under Javascript Libraries. Welcome to the Javascript Framework revolution....

View Article
Browsing all 756 articles
Browse latest View live