473,327 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

How do I calculate these functions using the Big-O analysis?

74 64KB
I have worked out these answers prior to asking the question, but I am wondering if anyone could tell if I am calculating these functions right using the Big-O analysis? I have calculated the values of each function by only looking at the dominant term for the Big-O analysis. Here are the functions that I am inquiring about below:

Algorithm A: 23n + 36n2;
Algorithm B: 6 + nlog2(n) + n;
Algorithm C: log2n + 36n2.
Here are my work out answers to them below:
Algorithm A: 3.6 X 10^13
Algorithm B: (1,000,000)log2(1,000,000)= 19931568.5693
Algorithm C: 36(1,000,000)^2= 36(1,000,000)^2= 3.6 X 10^13
Sep 7 '17 #1
0 3475

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: lynn | last post by:
Hello, I am installing some databases on the mysql databases of my mac osx 10.2.8 but when I do "mysqlimport -u X -p W (directory) *.txt.table" I am getting this answer: mysqlimport: Error:...
6
by: charliewest | last post by:
Can someone pls point me to or recommend the easiest way to calculate someone´s age using the TimeSpan object, in .NET CF? Isn´t there a simple way to use the TimeSpan object to calculate the...
3
by: Varun Kacholia | last post by:
This might not be the best forum..but I thought of taking my chances. I would like to generate a callgraph for a class without executing it (i.e. by only doing static analysis of the source code)....
6
by: Programador | last post by:
I'm getting this error when running this program: Cannot calculate rate using the arguments provided Module Module1 Sub Main() Rate(360, -694.44444444444446, 244274.69178082192) End Sub
3
by: Ajith Menon | last post by:
Do any body know how to use the functions available in the MATLAB using C#? ( To be specific, functions COHERE used to find Coherence and TFE to calculate Transfer function are needed. These...
3
by: deepthisoft | last post by:
hai, I have 2 javascript funtions.I want to call these 2 functions using one button. my code is like this, <input type="button" value="ok" onclick="validate(this),change()">
0
by: phanikumarparimi | last post by:
Hi all, I need to write table functions using db2 on Z/Os which takes two varchar parameters as input and returns a table as an output.Any help in the form of some documentation or sample...
1
by: arslanburney | last post by:
Hello. Needed some help again. Im trying to calculate the best fit line here. Given a set of points in a list. However, wirte in the end where i plot the line it tells me tht the variable is not...
2
by: asymtotes | last post by:
hello n gud day every one basically my project is about personality test, it content 6 page of question which each page has 13 question page 1 ----------------------- question 1 ...
0
by: pratikm23 | last post by:
add runtime textboxes and input values into them to calculate the average my code to add the runtime textboxes is: Private Sub Command1_Click() Dim TextControl As TextBox ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.