T (n) = 2nT (n/2) + nn b) 2T (n/4) + n0.51 apply master theorem in design and analysis of algorithms

# Tag: Solve

## solve for two variables for each n related to Collatz conjecture

For this code, for each x I would like to solve for all value ranges for c1 and c2 in a bounded range ie c1 and c2 in the range of real numbers +-100 for c1 and c2 for each x, which combined give “Length[stepsForEachN] == nRangeToCheck – 1”. Here is the code so far, I am not sure how to solve for the two variables c1 and c2 for each x:

`(*stepsForEachN output is A006577={1,7,2,5,8,16,3,19} if c1=c2=1*) c1 = 1; c2 = 1; nRangeToCheck = 10; stepsForEachNwithIndex = {}; stepsForEachN = {}; stepsForEachNIndex = {}; maxStepsToCheck = 10000; c1ValuesForEachN = {}; For[x = 2, x <= nRangeToCheck, x++, n = x; For[i = 1, i <= maxStepsToCheck, i++, If[EvenQ[n], n = Floor[(n/2)*c1], If[OddQ[n], n = Floor[(3*n + 1)*c2]] ]; If[n < 1.9, AppendTo[stepsForEachN, i]; AppendTo[stepsForEachNIndex, x]; AppendTo[stepsForEachNwithIndex, {x, i}]; i = maxStepsToCheck + 1 ] ] ] Length[stepsForEachN] == nRangeToCheck - 1 `

## How to solve libboost_system.so.1.58.0 error?

I upgraded my Ubuntu 16 to Ubuntu 18 two days ago, and now I’m trying to run something (which was running smoothly on Ubuntu 16) but the following error raised

`error while loading shared libraries: libboost_iostreams.so.1.58.0: cannot open shared object file: No such file or directory `

How to solve this? Note: I’m completely new to Linux.

## How to solve the ambiguity of selected state in a segmented control with just two segments?

I’m working on a web application that has two similar data grids in a page. User should be able to switch between these two data grids within the same page.

I have used segmented buttons to navigate between these two grids. But I feel this component visually becomes a toggle, and the current state of the toggle becomes ambiguous.

As of now I’m solely relying on the color / hue to show the selected state but I feel it’s kinda unclear which state is selected.

**Is there a better approach to solve this problem?**

Segmented buttons circled in red

## How I can solve below pde (Reynolds equation) with mathematica?

I want to solve below equation in Mathematica. I know a little bit about Mathematica. Can somebody help me?

\begin{array}{l} \frac{1}{{{R^2}}}\frac{\partial }{{\partial \theta }}\left( {{P_0}\frac{{\partial \left( {{P_X}} \right)}}{{\partial \theta }} – \Lambda {R^2}{P_X}} \right) + \frac{1}{R}\frac{\partial }{{\partial R}}\left( {R{P_0}\frac{{\partial \left( {{P_X}} \right)}}{{\partial R}} + R{P_X}\frac{{\partial \left( {{P_0}} \right)}}{{\partial R}}} \right) – i2\Lambda \Gamma \left( {{P_X}} \right)\ + \underbrace {\frac{1}{R}\frac{\partial }{{\partial R}}\left( { – 3R{P_0}\frac{{\partial {P_0}}}{{\partial R}}} \right) + i2\Lambda\left( {{P_0}} \right)}_f = 0\ {P_0}\left( R \right) = {\rm{available}}\ \Lambda = 1 \ {P_X}\left( {{R_1},\theta } \right) = {P_X}\left( {{R_1},\theta } \right) = 0\ {P_X}\left( {R,0} \right) = {P_X}\left( {R,2\pi } \right) \end{array}

## Is restoring a JetBackup copy a way to solve a malware infection?

## How to solve a knapsack problem where variable weight limit?

I have a knapsack problem where the sack size can increase, decrease or stay same in every time unit. The change pattern is known beforehand.

Can anyone help me about how to solve this?

## i am getting error in w3c validator for my homepage and i don’t know how to solve these eroor

My website is https://top10amazon.in and on the homepage i am getting these errors.

it is wordpress and i am beginner i don’t know how to solve this. Please anybody help me.

## How to Solve $y'(x)=x\ln(y(x))$ with $y(1)=1$ using DSolve

The solution to $ y’=x \ln(y)$ with initial conditions $ y(1)=1$ is $ y=1$ .

How to persuade `DSolve`

to obtain this solution?

`ClearAll[y, x]; ode = y'[x] == x Log[y[x]]; ic = y[1] == 1; sol = DSolve[{ode, ic}, y[x], x] `

One can see that $ y=1$ is solution that also satisfies the ic by looking at direction field.

`ClearAll[x, y]; fTerm = x Log[y]; StreamPlot[ {1, fTerm}, {x, -1, 3}, {y, 0, 2}, Axes -> True, Frame -> False, PlotTheme -> "Classic", AspectRatio -> 1 / GoldenRatio, StreamPoints -> {{{{1, 1}, Red}, Automatic}}, Epilog -> {{Red, PointSize[.025], Point[{1, 1}]}}, PlotLabel -> Style[Text[Row [{"Solution curve with initial conditions at {", 1, ",", 1,"}"}]], 14] ] `

V 12.0 on windows 10

## Solve 1000 reCAPTCHA V2 for only 1$ – Captcha.guru

**Hello**, I’m introducing you our reCaptcha 2 solving service – Captcha.guru

**$ 1**.

Solve 1000 Images CAPTCHA for only

**$ 0.1.**

**10%!**

*support@captcha.guru*

Telegram:

*https://t.me/captcha_guru*