北京大学ACM比赛题目 Consider an infinite full binary search tree (see the figure below), the numbers in the nodes are 1, 2, 3, .... In a subtree whose root node is X, we can get the minimum number in this subtree by repeating going down the left node until the last level, and we can also find the maximum number by going down the right node. Now you are given some queries as "What are the minimum and maximum numbers in the subtree whose root node is X?" Please try to find answers for there queries.
标签: the Consider infinite numbers
上传时间: 2013-12-16
上传用户:日光微澜
TWISTER Uniformly distributed pseudo-random numbers
标签: pseudo-random distributed Uniformly TWISTER
上传时间: 2016-04-24
上传用户:q123321
Write a multithreaded Java, Pthreads, or WIN32 program that outputs prime numbers. This program should work as follows: The user will run the program and will enter a number on the command line. The program will then create a separate thread that outputs all the prime numbers less than or equal to the number entered by the user.
标签: program multithreaded Pthreads numbers
上传时间: 2013-12-21
上传用户:zhyiroy
Numerical algorithm for Complex numbers
标签: Numerical algorithm Complex numbers
上传时间: 2016-11-11
上传用户:lx9076
Multiple numbers Calculator (source code and LAB notes)
标签: Calculator Multiple numbers source
上传时间: 2014-01-02
上传用户:英雄
Quaternions are hypercomplex numbers (that is generalizations of the complex numbers to higher dimensions than two). For an introduction, refer to the Wikipedia article on Quaternions. Quaternion toolbox for Matlab® extends Matlab® to allow calculation with matrices of quaternions in almost the same way that one calculates with matrices of complex numbers. This is achieved by defining a private type to represent quaternion matrices and overloadings of many standard Matlab® functions. The toolbox supports real and complex quaternions (that is quaternions with four real or complex components).
标签: numbers generalizations hypercomplex Quaternions
上传时间: 2014-11-27
上传用户:jhksyghr
Small calculater GUI This GUI takes 2 user chosen numbers and applies a matchmatical operation on the two numbers. Also shows save and load functionality.
标签: matchmatical calculater GUI operation
上传时间: 2013-12-19
上传用户:李彦东
z-trenning z-tickets. mipt lucky tickets. Count of numbers with 2*n digits in base k such that sum of first n digits is same as second n digits.
标签: z-trenning z-tickets tickets numbers
上传时间: 2014-01-05
上传用户:luopoguixiong
Java Class, which implements Rational numbers. Includes a simple test.
标签: implements Includes Rational numbers
上传时间: 2017-03-11
上传用户:标点符号
basic exemple. Do an ADD of two 4 bits numbers
标签: exemple numbers basic bits
上传时间: 2017-03-27
上传用户:youth25