analysis

System use case Vs. Business use case

白昼怎懂夜的黑 提交于 2019-12-02 19:00:49
I am completely new in analysis and design..... please some one tell me : what is the difference between System use case and Business use case ? As far as I know, there is only one diagram in UML called use case diagram.. Now, what about them ? Do they have separate diagram? Thank you Abdur Rahman Business Use-Case A Business Use-Case is a way in which a customer or some other interested party can make use of the business to get the result they want whether it’s to buy an item, to get a new driving licence, to pay an invoice, or whatever. An important point is that a single execution of a

Worst case time complexity analysis pseudocode

淺唱寂寞╮ 提交于 2019-12-02 14:59:27
问题 Could someone help me out with the time complexity analysis on this pseudocode? I'm looking for the worst-case complexity here, and I can't figure out if it's O(n^4), O(n^5) or something else entirely. If you could go into detail into how you solved it exactly, it would be much appreciated. sum = 0 for i = 1 to n do for j = 1 to i*i do if j mod i == 0 then for k = 1 to j do sum = sum + 1 回答1: First loop: O(n) Second loop: i is in average n/2 , you could have an exact formula but it's O(n²)

Painter puzzle - estimation

感情迁移 提交于 2019-12-02 14:39:08
问题 This problem is based on a puzzle by Joel Spolsky from 2001. A guy "gets a job as a street painter, painting the dotted lines down the middle of the road." On the first day he finishes up 300 yards, on the second - 150, and on the 3rd even less so. The boss is furious and demands an explanation. "I can't help it," says the guy. "Every day I get farther and farther away from the paint can!" My question is, can you estimate the distance he covered in the 3rd day? One of the comments in the

Painter puzzle - estimation

孤者浪人 提交于 2019-12-02 12:16:35
This problem is based on a puzzle by Joel Spolsky from 2001. A guy "gets a job as a street painter, painting the dotted lines down the middle of the road." On the first day he finishes up 300 yards, on the second - 150, and on the 3rd even less so. The boss is furious and demands an explanation. "I can't help it," says the guy. "Every day I get farther and farther away from the paint can!" My question is, can you estimate the distance he covered in the 3rd day? One of the comments in the linked thread does derive a precise solution, but my question is about a precise enough estimation - say,

Worst case time complexity analysis pseudocode

偶尔善良 提交于 2019-12-02 11:18:36
Could someone help me out with the time complexity analysis on this pseudocode? I'm looking for the worst-case complexity here, and I can't figure out if it's O(n^4), O(n^5) or something else entirely. If you could go into detail into how you solved it exactly, it would be much appreciated. sum = 0 for i = 1 to n do for j = 1 to i*i do if j mod i == 0 then for k = 1 to j do sum = sum + 1 First loop: O(n) Second loop: i is in average n/2 , you could have an exact formula but it's O(n²) Third loop happens i times inside the second loop, so an average of n/2 times. And it's O(n²) as well,

Software to help in log analysis?

假装没事ソ 提交于 2019-12-02 09:21:10
Hey guys, I have a quick question. Does anyone know of any software that can help with understanding client-server logs? I have 3 huge logs of 1 server & 2 clients that are time stamped, but only if I could arrange all 3 of them in a UI side by side in a chronological order, it would be so easy for me to understand them. Thanks for any tips on such a software. (Or maybe some ideas to help me with this.)3 Edit: the mockup image has blue line partitions to separate out time in milliseconds. That is just for visualization. You didn't say what platform but Microsoft Log Parser is something that

How to make cargo to save-analysis?

扶醉桌前 提交于 2019-12-02 08:56:31
问题 How can I make cargo to save-analysis ? I know that I can do this with rustc by calling rustc -Zsave-snalysis <files...> But, I couldn't figure out for cargo . And also I like to know how I can read them back to rls_analysis data structures. I tried cargo rustc -Zsave-analysis, but it doesn't seem to work. I also tried export RUSTC_SAVE_ANALYSIS=api, no work too. What I want to do is getting fully qualified path (e.g. ::foo1::foo2::Foo3 ) to the types notated in source code. If there's other

How would you go about finding the complexity of this algorithm?

[亡魂溺海] 提交于 2019-12-02 05:52:33
function alg1(n) 1 a=0 2 for o=1 to n do 3 for t=1 to o do 4 for k=t to o+t do 5 a=a+1 6 return(a) If anyone could guide me to how you would find the worst-case here, and how to get the output a of alg1 as a function of n, I would be very grateful. Thanks! We can compute the exact number of increments this code executes. First, let's replace for k=t to o+t do with for k=1 to o+1 do After this change, two inner loops looks like this for t=1 to o do for k=1 to o+1 do The number of iterations of these loops is obviously o*(o+1) . The overall number of iterations can be calculated in the following

Elasticsearch custom analyzer with ngram and without word delimiter on hyphens

梦想的初衷 提交于 2019-12-02 05:43:44
问题 I am trying to index strings that contain hyphens but do not contain spaces, periods or any other punctuation. I do not want to split up the words based on hyphens, instead I would like to have the hyphens be part of the indexed text. For example, my 6 text strings would be: magazineplayon magazineofhorses online-magazine best-magazine friend-of-magazines magazineplaygames I would like to be able to search these string for the text containing "play" or for the text starting with "magazine" .

Time complexity analysis. choosing operator for counting number of times a line of code runs

自古美人都是妖i 提交于 2019-12-02 05:22:45
Analysing time complexity of this pseudocode. On the right my take on the number of times each line runs. I'm not sure whether to use log n , n log n , or simply n for the while-loop..please help times 1 sum = 0 1 2 i = 1 1 3 while i ≤ n log n + 1 4 for j = 1 to n n log n 5 sum = sum + j n log n 6 i = 2i log n 7 return sum 1 this results in: 2 n log + 2log n + 4 and thereby : O(n log n) is this correct ? If your while loop is: 3 while i < n log n + 1 4 for j = 1 to n n log n 5 sum = sum + j n log n 6 i = 2i log n Then yes, you are correct in calculating the complexity. The complexity of the