數字運算,判斷一個數是否接近素數 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上傳時間: 2015-05-21
上傳用戶:daguda
Application & Integration Services are at the heart of any Service Oriented Architecture (SOA). Sun Java System Application Server and integration services provide a highly scalable and reliable platform for the standards-based deployment of Java applications and web services. Sun s offerings may be used by small organizations and large enterprises that require a services-based foundation to rapidly unlock the business value of their IT investment.
標簽: Architecture Application Integration Services
上傳時間: 2014-12-20
上傳用戶:lanwei
Robotics TOOLBOX The Toolbox provides many functions that are useful in robotics including such things as kinematics, dynamics, and trajectory generation. The Toolbox is useful for simulation as well as analyzing results from experiments with real robots. Have fun with the toolbox. It is self-explanatory and very (robotics) user friendly...see the robot.pdf
標簽: functions including Robotics provides
上傳時間: 2014-12-06
上傳用戶:yyyyyyyyyy
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
Generate 100 samples of a zero-mean white noise sequence with variance , by using a uniform random number generator. a Compute the autocorrelation of for . b Compute the periodogram estimate and plot it. c Generate 10 different realizations of , and compute the corresponding sample autocorrelation sequences , and . Compute the average autocorrelation sequence as and the corresponding periodogram for . d Compute and plot the average periodogram using the Bartlett method. e Comment on the results in parts (a) through (d).
標簽: zero-mean Generate sequence variance
上傳時間: 2016-03-04
上傳用戶:朗朗乾坤
Versatile visual servoing without knowledge of true jacobian.pdf cobian matrix estimator. The Jacobian matrix estimator does not need a priori knowledge of the kinematic structure and parameters of the robot system, such as camera and link parameters. The proposed visual servoing control scheme ensures the convergence of the image-features to desired trajectories, by using the estimated Jacobian matrix, which is proved by the Lyapunov stability theory. To show the effectiveness of the proposed scheme, simulation and experimental results are presented.
標簽: Versatile knowledge estimator servoing
上傳時間: 2016-08-26
上傳用戶:大三三
In this paper we describe a control methodology for catching a fast moving object with a robot manipulator, where visual information is employed to track the trajectory of the target. Sensing, planning and control are performed in real-time to cope with possible unpredictable trajectory changes of the moving target, and prediction techniques are adopted to compensate the time delays introduced by visual processing and by the robot controller. A simple but reliable model of the robot controller has been taken into account in the control architecture for improving the performance of the system. Experimental results have shown that the robot system is capable of tracking and catching an object moving on a plane at velocities of up to 700 mm/s and accelerations of up to 1500 mm/s2.
標簽: methodology describe catching control
上傳時間: 2014-01-12
上傳用戶:qq521
This paper presents a visual based localization mechanism for a legged robot. Our proposal, fundamented on a probabilistic approach, uses a precompiled topological map where natural landmarks like doors or ceiling lights are recognized by the robot using its on-board camera. Experiments have been conducted using the AIBO Sony robotic dog showing that it is able to deal with noisy sensors like vision and to approximate world models representing indoor ofce environments. The two major contributions of this work are the use of this technique in legged robots, and the use of an active camera as the main sensor
標簽: localization mechanism presents proposal
上傳時間: 2016-11-04
上傳用戶:dianxin61
You may have heard the Latest Brief web service on CodeProject.com. It provides several methods for web client programs to retrieve information about CodeProject.com, such as the latest article updates, the latest comments, and the latest lounge posts, etc. Some very popular articles on the CodeProject site make use of this service. In this article, I am going to present a java client program that uses soap message to call the methods of this web service. My program is not a general java soap client, which means you cannot use it to call other web services directly. However, you can easily modify it for other web services. The program uses only basic Java, it does not depend on any other external class library.
標簽: CodeProject provides service methods
上傳時間: 2014-01-25
上傳用戶:baiom
鈥?What Is a Thread? o The Thread Class o Simple Thread Examples 鈥?Problems with Multithreading o What Goes Wrong? o Thread Names and Current Threads o Java s synchronized 鈥?Synchronizing Threads o Multiple Locks 鈥?The Dining Philosophers Problem o Deadlocks o A Solution to the Dining Philosophers Problem o Java s wait() and notify() o Dining Philosophers Example 鈥?Summary
標簽: Thread Multithreading Examples Problems
上傳時間: 2017-03-02
上傳用戶:kristycreasy