Wednesday, December 1, 2021

Recent Questions - Mathematics Stack Exchange

Recent Questions - Mathematics Stack Exchange


Probability that an element of one set is in a different set, both within a finite universal set

Posted: 01 Dec 2021 10:27 AM PST

Definitions: $$ x \in \{1,...,z\} \subseteq \Bbb N^n \supseteq\{1,...,y\}$$


Theorem statement:

$$P(x \in \{1,...,y\}) = \begin{cases} \displaystyle \frac{(z + n)y}{nz}, & (z + n)y \le nz \\[2ex] 1, & (z + n)y > nz \end{cases}$$


First lemma:

$$P(x \in \{1,...,y\}) = 1 \iff z \le y \iff x\in \{1,...,z\} \subset \{1,...,y\}$$


Second lemma:

$$P(x \in \{1,...,y\}) \neq 1 \iff z > y \iff x\in \{1,...,z\} \supset \{1,...,y\}$$

$$x \notin \{1,...,y\} \iff x \in \{1,...,z\} - \{1,...,y\} \iff y <x \le z$$

$$\therefore z > y \iff P(x \notin \{1,...,y\}) = \frac{z-y}{z} \iff P(x \in \{1,...,y \}) = \frac yz$$


Third lemma:

$$P(z \le y) = \frac yn$$


Thus:

$$\begin{align} P(x \in \{1,...,y\}) &= \frac yn + \frac yz \lor 1 \\[2ex] &= \frac{yz + yn}{nz} \lor 1 \\[2ex] &= \frac{(z + n)y}{nz} \lor 1 \end{align}$$

The reason "$\lor \ 1$" is written is due to the fact that the fraction is sometimes equal to a number greater than one. A probability exists in the interval $[0,1]$, so if the fraction is greater than one, then the probability is equal to one, hence the piecewise expression. In this case, if the fraction is equal to one, it just means that the conditions for certainty are more than sufficient, but that obviously doesn't equate to an above-one probability, as that is nonsensical.



Notes:

The Definitions section could be removed by altering the theorem statement:

$$P(x \le z \in (\{1,...,y\} \subseteq \Bbb N^n) \cap (\{1,...,z\} \subseteq \Bbb N^n)) = \begin{cases} \displaystyle \frac{(z + n)y}{nz}, & (z + n)y \le nz \\[2ex] 1, & (z + n)y > nz \end{cases}$$ This approach removes a section, but makes the theorem statement more cluttered. Also, I don't think the parentheses are necessary, because I'm pretty sure the intersection is to be computed last (see p. 26 of this article).


Questions:

$(1)$ Is my proof correct?

$(2)$ There is currently no writing (except for a paragraph in the last section), because I found the expressions self-explanatory; should I change this?

$(3)$ Is the altered theorem statement shown in the Notes section better than the one used inside the theorem?

Proving unboundedness of the natural numbers via the Axiom of Completeness

Posted: 01 Dec 2021 10:21 AM PST

In the book "Understanding Analysis, second edition" by Stephen Abbot, the unboundedness of the set of natural number $\mathbb{N}$ is proven as the following proof:

Assume, for contradiction, that $\mathbb{N}$ is bounded above. By the Axiom of Completeness (AoC), $\mathbb{N}$ should then have a least upper bound, and we can set $\alpha = \sup \mathbb{N}$. If we consider $\alpha - 1$, then we no longer have an upper bound [referring to the definition of supremum], and therefore there exists an $n \in \mathbb{N}$ satisfying $\alpha - 1 <n$. But this is equivalent to $\alpha < n+1$. Because $n+1 \in \mathbb{N}$, we have a contradiction to the fact that $\alpha$ is supposed to be an upper bound for $\mathbb{N}$. (Notice that the contradiction here depends only on AoC and the fact that $\mathbb{N}$ is closed under addition.)

What I do not understand is the following: How can we assume AoC holds for natural numbers? Especially in this book, we start by defining $\mathbb{N}$, and then say that $\mathbb{Q}$ (the set of rational numbers) is an extension of $\mathbb{N}$. Then, it is shown that $\sup A$ may not exist for bounded $A \subset \mathbb{Q}$. Then, we finally define AoC to "close the holes" of $\mathbb{Q}$, which is an axiomatic way of defining $\mathbb{R}$. So, how can we now go back to $\mathbb{N}$, and assume AoC holds to prove $\mathbb{N}$ is unbounded. In summary, I believe (probably I am mistaken) the way we prove this is some sort of paradox since AoC comes after defining $\mathbb{N}$ as a property of real sets. What if $\mathbb{N}$ was indeed bounded, but AoC does not hold for $\mathbb{N}$, hence this proof is wrong? In my view, we should define an AoC argument for natural numbers (that any bounded of $\mathbb{N}$ admits a $\sup$, and indeed this is a member of the set, hence we have a $\max$), then use this in our proof.

Stochastic Processes: Markov Chains

Posted: 01 Dec 2021 10:21 AM PST

I would like to know how to solve question 3 enter image description here

Question on U-Substitution (Calculus)

Posted: 01 Dec 2021 10:16 AM PST

I am currently learning u-substitution of integrals. I am kind of confused of what should I choose for u value. Can someone tell me tricks of how to do it? Thanks.

Catalan Number- Permutations and combination

Posted: 01 Dec 2021 10:28 AM PST

A person is decorating his baby's room. He draws points $A_1, A_2, . . . , A_{2n}$ on a line. Then he paints $n$ circumferences such that:

  • Every circumference has diameter $A_iA_j$ for some $1\leq i < j \leq 2n$.
  • Every $A_k$ belongs to exactly one circumference.
  • Any two circumferences are disjoint.

Finally, he uses two colors, green and orange, to paint the points such that pairs of point on the same circumference get the same color. In how many ways can he decorates the room?

How do we proceed, the answer is the Catalan number but how do we use induction to prove that?

Is it true that for a Group $G$ with Normal Group $N: G/N = GN/N$?

Posted: 01 Dec 2021 10:30 AM PST

Is it true that for a Group $G$ with Normal Group $N: G/N = GN/N$?

I think the statement is correct. But why do we have to write: $[G,G]N/N$ here instead of just $[G,G]/N$?

Thanks!

Limit problem. L'Hospital's Rule not allowed.

Posted: 01 Dec 2021 10:30 AM PST

I'm lost on the following problem. I don't know which method to use. $$\lim_{x \to \infty} \frac{\sin({\frac{2}{x}})+\frac{2}{x}}{\sin({\frac{1}{x}})}$$

locally free resolution for computation of Ext sheaves in Hartshorne Proposition 6.5

Posted: 01 Dec 2021 10:06 AM PST

I have a question about Proposition 6.5., Chap III (on page 234) from Hartshorne's Algebraic Geometry.
The statement is:

Let $(X, \mathcal{O}_X$ be ringed space. Suppose there is an exact sequence

$$ ... \to \mathcal{L}_1 \to \mathcal{L}_0 \to \mathcal{F} \to 0$$

in $\mathcal{Mod}(X)$, the category of $\mathcal{O}_X$ modules, where the $\mathcal{L}_i$ are locally free sheaves of finite rank (in this case we say $\mathcal{L}_{\bullet}$. is a locally free resolution of $\mathcal{F}$). Then for any $\mathcal{G} \in \mathcal{Mod}(X)$ we have

$$ \mathcal{Ext}^i(\mathcal{F}, \mathcal{G}) \cong h^i(\mathcal{Hom}(\mathcal{L}_{\bullet}, \mathcal{G})). $$

here the $\mathcal{Ext}^i(\mathcal{F}, -)$ are the right derived functors of $\mathcal{Hom}(\mathcal{F}, -)$ and the right hand side the cohomology sheaves of complex $\mathcal{Hom}(\mathcal{L}_{\bullet}, \mathcal{G})$.

The proof says that both sides are $\delta$-functors from $\mathcal{G}$ to $\mathcal{Mod}(X)$. For $i = 0$ they are equal, because then $\mathcal{Hom}(-,\mathcal{G})$ is contravariant and left exact. Both sides vanish for $i > 0$ when is $\mathcal{F}$ injective, because then $\mathcal{Hom}(-,\mathcal{G})$ is exact. So by (1.3A) they are equal.

Theorem 1.3A. on page 206 states: Let $T = (T^i)_{i \ge 0}$ be a covariant $\delta$-functor from $\mathcal{A}$ to $\mathcal{B}$ ($\mathcal{A}$, $\mathcal{B}$ are abelian categories). If $T^i$ is effaceable for each $i > 0$, then $T$ is universal. The definitions of effaceable and universal $\delta$-functor can be looked up on the sage page.

My question is: Why is it neccessary for the proof to assume that the $\mathcal{L}_i$ are locally free? I see no reason why the same proof shouldn't go through verbatim if we start with an arbitrary resolution of $\mathcal{F}$, ie a family $(\mathcal{A}_i)_{i \ge 0}$ in $\mathcal{Mod}(X)$ there is an exact sequence
$... \to \mathcal{A}_1 \to \mathcal{A}_0 \to \mathcal{F} \to 0$ of $\mathcal{F}$.

What kind of differentiation is used in the sequence d(xy) =xdy+ydx?

Posted: 01 Dec 2021 09:58 AM PST

What kind of differentiation is used in the sequence d(xy) =xdy+ydx? How we differentiate functions this way are they using implicit differentiation,?

How to factor $4d^2 -16w^2 -4cd+c^2$ ( from Hart William L., Intermediate Algebra, 1948)

Posted: 01 Dec 2021 10:29 AM PST

I found this factoring problem in Hart, Intermediate Algebra, 1948, page $97$ , problem $n° 60$, ( at Archive.org).

Link :https://archive.org/details/intermediatealge030183mbp/page/n110/mode/1up

I tried to manipulate the formula using: $m^2n^2 = (mn)^2$ and also : $n^2 - m^2 = (m-n) ( m+n)$; I made use of addition's associativity and commutativity in order to exchange the order of the terms; but it led nowhere.

Any hint will be appreciated.

Thanks in advance

enter image description here

Solution verification $\left(A \cap B\right) \cup \left(A \cap B^c\right)$

Posted: 01 Dec 2021 10:26 AM PST

Prove that: $\left(A \cap B\right) \cup \left(A \cap B^c\right)=A$

Attempt: $$\left[\left(A \cap B\right) \cup A\right] \cup \left[\left(A \cap B\right)\cup B^c\right] \iff \left[A \cup \left(A \cap B \right)\right] \cup A= A$$

I'm right?

On $\ker\chi $ , $\: \chi :{\rm Gal}(E,F)\rightarrow S_n$

Posted: 01 Dec 2021 09:58 AM PST

Assume $E$ is a splitting field of a separable polynomial of degree $n$,so $E$ must have $n$ district roots $(a_1,...,a_n)$ of the polynomial, if $\phi\in{\rm Gal}(E,F)$ then $\phi (a_i)$ must be one of the $a_j$, now

Consider the homomorphism $\: \chi :{\rm Gal}(E,F)\rightarrow S_n$

$\chi(\phi_i)=j$

Question1 : what's the $\ker\chi $?

The kernel is consisting of all those $\phi_i$ that send $a_i$ to $a_1$ and so $i\rightarrow 1$?

Now if I apply the $1st$ isomorphism theorem, I get that ${\rm Gal}(E,F)/\ker\chi $ is isomorphic to a subgroup of $S_n$

Question2: can I get that ${\rm Gal}(E,F) $ is isomorphic to a subgroup of $S_n$, with the $\chi$ homorphism?

(This maybe simple but I am a bit confused right now)

Suppose $ \sum a_k x^k $ uniformly converges at $ [0,R) $, then it converges pointwise at $ R $.

Posted: 01 Dec 2021 10:01 AM PST

Prove the following theorem: Look at the series $ \sum a_k x^k $ and denote its radius of convergence as $ R $. Suppose the series uniformly converges at $ [0,R) $, then it converges pointwise at $ R $.

One can prove the contrapositive, that is: If $ \sum a_k x^k $ does not converge pointwise at $ x_0 = R $. Then there is no uniform convergence of the series at $ [0,R) $

Proof from lecture notes: Suppose $ \sum a_k x^k $ does not converge pointwise at $ x_0 = R $. Suppose for the sake of contradiction that there is a uniform convergence at $ [0,R) $, then by Cauchy's criterion for uniform convergence we have that for all $ \epsilon>0 $ there exists $ n_0 $ s.t. for all $ m,n > n_0 $ it occurs that $ | \sup_{x\in [ 0,R) } \sum_{k=n}^{m} a_k x^k | < \epsilon $ and from continuity ( we talk about about a finite sum of continuous functions ) we get that $ | \sum_{k=n}^m a_k R^k | \leq \epsilon $.
Hence, at point $ R $ the series ( numerical series ) $ \sum a_k R^k $ satisfies Cauchy's criteria and specifically, converges - a contradiction.

I didn't understand the proof above from the line where it says " and from continuity ... ", and specifically, how they jumped to " $ | \sum_{k=n}^m a_k R^k | \leq \epsilon $ ", if you have any idea, can you please explain?

What is the probability that the sum of the squares of $3$ positive real numbers whose sum is less than $10$ is less than $16$?

Posted: 01 Dec 2021 10:15 AM PST

What is the probability that the sum of the squares of $3$ positive real numbers whose sum is less than $10$ is less than $16$?

This is how I understood the question:

Let $a,b,c\in\mathbb R^+$ with

$$a+b+c<10$$

Then find the probability such that

$$a^2+b^2+c^2<16$$

There are infinitely many positive real numbers. Know how to calculate probability?

I would like to draw a circle or triangle area. But I can't establish a connection with the triangle area or the circle.

The situations are also infinite. This question sounds as if it will be solved from the area of a figure. Do you think I am on the right track?

Nothing comes to mind.

Limit construction process that avoids constructing a decimal like $x.99999999\ldots$

Posted: 01 Dec 2021 10:28 AM PST

Each monotonically increasing sequence of real numbers that is bounded from above has a limit.

Below is a constructive proof of the statement above.

Let $(a_n)_{n≥1}$ be a monotonically increasing, bounded sequence where $a_n = A^{(n)}.\alpha_1^{(n)}\alpha_2^{(n)}\alpha_3^{(n)}\ldots$ with $A^{(n)} \in \mathbb N \cup \{0\}$ and $\alpha_j^{(n)} \in \{0, 1, 2, 3, \ldots, 9\}.$ By assumption, there's $T \ge 0$ s.t. $A^{(n)} < a_n \le T$ for all $n$. Now, $(A^{(n)})_{n\ge 1}$ is monotonically increasing, but it cannot fly off to infinity as it is bounded by $T$ so there must be some $n_0 \in \mathbb N$ s.t. $A^{(n)} = A$ for all $n \ge n_0.$ Similarly, there's some $n_1 \in \mathbb N$ s.t. $\alpha_1^{(n)} = \alpha_1$ for all $n \ge n_1$.

Using the algorithm above, we construct a number $a = A.\alpha_1\alpha_2\alpha_3\ldots$ The last step is to show $a = \lim_{n \to \infty}a_n$.

My question:

Consider $(\alpha_1^{(n)})$. One possible $(\alpha_1^{(n)})$ is $1, 1, 1, 1,\ldots, 1, 2, 3, 6, 8, 8, 8, \ldots, 9, \ldots$. Since $(\alpha_1^{(n)})$ is monotonically increasing, if/when it reaches, say, $8$, it never turns back and takes a value $< 8$, so it has to keep growing and eventually must reach $9$ and stay there.

So, how does this construction avoid the limit $A.999999\ldots?$

Homotopy equivalence induces Deformation Retraction if... (Hatcher's AT)

Posted: 01 Dec 2021 10:28 AM PST

I'm currently studying Allen Hatcher's book Algebraic Topology and I've come across argument in a proof about which I'm not sure why it works. It can be looked up on page 353.

Proposition 4.15. If $(X,A)$ is an n connected CW pair, then there exists a CW pair $(Z,A) \simeq (X,A) \operatorname{rel} A$ such that all cells of $Z − A$ have dimension greater than $n$.

note a homotopy $H: Z \times [0,1] \to X$ is $\operatorname{rel} A$ for $A \subset Z$ if $h_t= H(-\times \{t\})\vert_A$ is independent of $t$.

The Proof: Starting with the inclusion $ A \hookrightarrow X$ attach cells to $A$ of dimension $n + 1$ and higher to produce a CW complex $Z$ and a map $f :Z \to X$ that is the identity on $A$ and induces an injection on $\pi_n$ and isomorphisms on all higher homotopy groups. The induced map on $\pi_n$ is also surjective since this is true for the composition $f :A \hookrightarrow Z \xrightarrow{f} X$ by the hypothesis that $(X,A)$ is $n$ connected. In dimensions below $n$, $f$ induces isomorphisms on homotopy groups since both inclusions $ A \hookrightarrow Z$ and $ A \hookrightarrow X$ induce isomorphisms in these dimensions. Thus $f$ is a weak homotopy equivalence, and hence a homotopy equivalence by Whitehead's theorem.

To see that $f$ is a homotopy equivalence $\operatorname{rel} A$, form a quotient space $W$ of the mapping cylinder $M_f$
by collapsing each segment $\{a\} \times [0,1]$ to a point, for $a \in A$. Assuming $f$ has been made cellular, $W$ is a CW complex containing $X$ and $Z$ as subcomplexes, and $W$ deformation retracts to $X$ just as $M_f$ does. Also, $\pi_i(W,Z) = 0$ for all $i$ since $f$ induces isomorphisms on all homotopy groups, so $W$ deformation retracts onto $Z$.

My question is about the last claim in the proof: Why $W$ deformation retracts onto $Z$ if $\pi_i(W,Z) = 0$ for all $i$? In explicite terms why there exist a family of maps $h_t: W \to W, t \in [0,1]$, such that $h_0= id_X $(the identity map), $h_1(W)= Z$ and $h_t \vert _Z= id_Z$ for all $t$?

also note the construction of the mapping cylinder as the quotient of the disjoint union $(Z \times [0,1]) \coprod X$ obtained by identifying each $(z, 1) \in X \times [0,1]$ with $f(z) \in X$.)

Compact cardinal cannot be successor?

Posted: 01 Dec 2021 09:59 AM PST

This is a follow-up question to $\kappa$ is compact $\implies$ $\kappa$ is regular. The definition I'm using for "compact" is the same as there.

I am trying to show if $\kappa$ is compact, then $\kappa$ cannot be a successor cardinal.

My first attempt was as follows: Assume $\kappa=\lambda^+$. Let $\{p_\alpha\}_{\alpha \in \kappa}$ be propositional variables, and let $p$ be $\bigvee_{\beta \in \lambda} p_\alpha$. Then the set of sentences $\Sigma=\{\neg p_\alpha\}_{\alpha \in \kappa} \cup \{p\}$ is obviously unsatisfiable, because if $p$ is true then at least some $p_\alpha$ must be true. Then, trying to reach the desired contradiction, I tried to show that any subset of $\Sigma$ having cardinality $< \kappa$ is satisfiable, but I realized this is false. (For example, $\{\neg p_\alpha\}_{\alpha \in \lambda} \cup \{p\}$ has size $\lambda < \kappa$ but it is not satisfiable.)

Perhaps there's a more creative way to pick $\Sigma$ which actually works?

Optimization of 3 variable function without lagrange

Posted: 01 Dec 2021 10:09 AM PST

The temperature in space given by $T(x,y,z)=200xyz^2$ .

Find the hottest temperature on a unit sphere centered at the origin.(without lagrange multipliers method)

I took $x^2+y^2+z^2=1$ then using $z^2=1-x^2-y^2$, substituted into equation, then found partial derivatives of $T$ wrt $x$ and $y$ and equated to $0$.

What do I do next? Stuck with two equations containing $x$ and $y$.

Sequence of Infinitely Differentiable Functions Has Uniformly Converging Subsequence

Posted: 01 Dec 2021 10:04 AM PST

Let $\{f_n\}$ be a sequence of $C^\infty$ functions on a compact interval such that for each $k$ there exists $M_k$ such that $|f_n^{(k)}(x)|\leq M_k$ for all $n$ and $x.$ Prove that there exists a subsequence converging uniformly, together with the derivatives of all orders, to a $C^\infty$ function.

Could somebody provide a proof?

Probabilities above $1$

Posted: 01 Dec 2021 10:28 AM PST

Is it okay for a probability to be above one, where all probabilities above one are equivalent to a probability of one? If not, is it okay to write something like this:

$$P(Q) = \begin{cases} \displaystyle \frac ab, & \text{if} \ \ \displaystyle \frac ab \le 1 \\[2ex] 1, &\text{if} \ \ \displaystyle \frac ab > 1 \end{cases} $$

I posted the theorem I was working on here. In it you can see what caused this conundrum. According to Ethan Bolker's answer, there was no problem in using the piecewise expression, so I did that.

Parametrization of homogenized curve

Posted: 01 Dec 2021 10:19 AM PST

I am trying to parametrize the following curves:

$F(z,x,y) = (x-y)^7 - z^5x^2, \quad G(z,x,y) = (x-y)^3 - zx^2$.

I first try to find a parametrization for $g = G(1,x,y)$. I am trying to do it along the lines through the origin. Hence $y = xt$. For $g$ I get the following:

$(x-xt)^3 - x^2 = x^3(1-t)^3 - x^2 \implies x^3(1-t) = x^2 \iff x = \frac{1}{(1-t)^3} \implies y = \frac{t}{(1-t)^3}$,

which will give me the parametrization $[t_0,t_1] \mapsto [(t_1-t_0)^3 : t_0^3 :t_0^2t_1]$.

However, doing the same with $f = F(1,x,y)$ I will get $x^7(1-t) = x^2 \implies x = \frac{1}{(1-t)^{7/5}} \implies y = \frac{t}{(1-t)^{7/5}} $. But here I don't know how to get the parametrization from that. How can I proceed from there?

Exist $a,b$ such that $-1<a<0<b<1$ and satisfy $|P(a)| \geq 1$, $P(b) \geq 1$

Posted: 01 Dec 2021 10:01 AM PST

Problem: Let $n\geq 2$ be an even integer. Consider a monic polynomial P(x) ($\deg P=n$) with real coefficients which has $n$ real roots $x_1,x_2,...,x_n$ (no need to be distinct)and $-1\leq x_i \leq 1$ for all $i=1,2,...,n$.

Prove that there doesn't exist two real number $a,b$ such that $-1<a<0<b<1$ and satisfy $|P(a)|\geq 1$ and $P(b)\geq 1$

*) My work so far is just prove that the statement is true for $n=2$. For general, i've checked for $n=4,6$ with some unique number and it's true. But i've not done for $n=4,6$ and no idea for general case

Someone can help me with this problem ? Thanks :)

what is the formal notation about the CDF or PDF of a function with limited interval.

Posted: 01 Dec 2021 10:30 AM PST

Given an arbitrary function, like $d(t)$, within some finite interval $[t_1,t_2]$, we can get its PDF and CDF by sampling, as shown like Converce from a function to its CDF and PDF

My question is where there is any formal notation to describe them. The reason why I do not call them CDF and PDF is because $d(t)$ is deterministic.

My final aim is to use some formal notation to describe the following question $$ \int_{t_1}^{t_2}g\left(d\left(t\right)\right)\cdot \mathbb{I}\left\{b(t)<\bar{B}\right\} \ dt=(t_2-t_1)\int_{0}^{\bar{B}}g\left(u\right)\ dF_{d(t)}(u) $$ where $F_{d(t)}(u)$ is the CDF of $d(t)$ within $[t_1,t_2]$.

Limit without hospital's rule $\lim_{x\rightarrow 0} (\frac{1}{x^2} - \frac{x}{\sin^3(x)})$

Posted: 01 Dec 2021 10:23 AM PST

Calcule $\lim_{x\rightarrow 0} (\frac{1}{x^2} - \frac{x}{\sin^3(x)})$ without using L'Hospital

I first was trying to replace $x = \frac{\pi}{2} + u$ but I can't find a rule or eliminate anything. After that I try using cubes:

$\frac{\sin^3(x) - x^3}{x^2\sin^3(x)} = \frac{(\sin(x)-x)(\sin^2(x)+x^2+x\sin(x))}{x^2\sin^3(x)}$ but again i couldn't find any rule or formula.

How can I solve this problem without using L'Hospital? Thank you very much in advance

Quasi-isometry of finitely generated group

Posted: 01 Dec 2021 10:19 AM PST

Let $\Gamma$ be a finitely generated group, with two generating sets $S_1,S_2$. Deduce, from the Milnor - Svarc lemma, that $Cay(\Gamma, S_1)$ and $Cay(\Gamma,S_2)$ are quasi isometric, where $Cay(\Gamma,S_i)$ is the Cayley graph of $\Gamma$ w.r.t the generating set $S_i$.

Now my idea is as follows - we know that $(\Gamma, d_{S_1})$ and $Cay(\Gamma,S_1$) are quasi isometric. The same goes for $(\Gamma, d_{S_2})$ and $Cay(\Gamma,S_2)$. So I'm trying to show that $(\Gamma, d_{S_1})$ and $(\Gamma, d_{S_2})$ are quasi-isometric. But how do I get this from Milnor-Svarc? I understand that $\Gamma$ acts on $(\Gamma, d_{S_2})$ geometrically and all, so $(\Gamma, d_{S_2})$ and $\Gamma$ are quasi-isometric, but I'm not sure w.r.t to what metric (on $\Gamma$ - the one that acts). As I understand it, Milnor - Svarc states that if Γ acts geometrically on a geodesic proper metric space (X,d) then Γ is finitely generated by a subset S⊆Γ and (Γ,dS) and (X,d) are quasi-isometric

Any help would be appreciated.

Proving ${\mathbb{P}}^n$ is Hausdorff

Posted: 01 Dec 2021 10:21 AM PST

I am trying to understand and complete the proof that the real projective space ${\mathbb{P}}^n$ is Hausdorff.In my notes it is modeled as${\mathbb{R}}^{n+1}\setminus \{0\}/\sim $ and it goes like this:

It is enough to construct, given two different points $[a]$ and $[b]$ a continuous function $f:{\mathbb{P}}^n \rightarrow {\mathbb{R}} $ such that $f[a] \neq f[b] $ (why ?.......(1))

We fix $\omega$ in ${\mathbb{R}}^{n+1}\setminus \{0\}$ and define $f[\nu]$ as the squared of the distance from $\omega$ to the vector line $R\nu$ generated by $\nu$. Since $f\circ \pi(\nu) = f[\nu] = |\omega|^2-(\omega . \nu)^2/|\nu|^2$, it follows that $f \circ \pi $ is continuous and hence $f$ is continuous...(why?........(2)) ($\pi$ is the canonical projection $\pi : {\mathbb{R}}^{n+1}\setminus \{0\} \rightarrow {\mathbb{P}}^{n} $) It is then enough to take $w \sim a$ to have $f[a] = 0 \neq f[b]$ ...(*)

I have two questions:

1)why is (1) true ?

At first I thought I could justify (1) like this: Since ${\mathbb{R}}$ is Hausdorff, $\exists $ open sets $A,B$ such that for $f[a] \neq f[b] $, $f[a] \in A$ and $f[b] \in B$, with $A \cap B = \emptyset$. By hypothesis then $[a] \neq [b] $ and since $f$ is continuous, $f^{-1}(A) $ and $f^{-1}(B) $ are open sets of ${\mathbb{P}}^n$ containing $[a]$ and $[b]$ respectively such that $f^{-1}(A) \cap f^{-1}(B) = f^{-1}(A\cap B)=f^{-1}(\emptyset)=\emptyset $. Then ${\mathbb{P}}^n$ is Hausdorff

But I don't think my proof is correct since for it to work we need $f$ to have the property stated at (1) but the function $f$ that they propose later has that property only when taking one of the points fixed, say $a$ as $a \sim w$ as done in (*), and not for any two points as needed for the definition of Hausdorff space. Besides if w is the center of a circle (in the 2-dimensional case for instance there are two lines that have the same distance to w, that is the tangent lines, so (1) does not hold for any two different $[a] $and $[b]$)

2)why $f \circ \pi $ continuous implies $f$ is continuous? don't think I can compose with a continuous $\pi^{-1}$, since that function is not well defined since $\pi$ is not injective

enter image description here

Formulating list sorting as a pure math problem

Posted: 01 Dec 2021 10:05 AM PST

Sorting a list is a classic problem in computer science, and many interesting algorithms such as merge sort and heap sort have been discovered.

I'd like to have a precise formulation of the list sorting problem as a pure math problem, so that a hypothetical pure mathematician who has never heard of computers (such as Gauss, let's say) would be able to read the problem, understand it, and then invent algorithms such as merge sort and heap sort.

A statement such as "devise an algorithm for sorting a list of numbers into ascending order" is inadequate, because it doesn't state which basic operations are allowed to be used by the algorithm. And it also doesn't say precisely what an "algorithm" is. Yes, it should be something that can be implemented in assembly code, but we are posing the problem for a mathematician who has never heard of a computer.

Once the problem has been formulated precisely, it should be possible to state and prove theorems such as "The worst-case running time of the quicksort algorithm is $O(n^2)$" with a level of precision and rigor that would meet the standards of, say, baby Rudin.

Question: How would you precisely state the problem of devising a list sorting algorithm?

Bonus question: Do you know of a reference that presents list sorting algorithms as a topic in pure math, with a level of precision that would satisfy an author such as Rudin?


Edit: This might make the question more specific. The beginning of chapter 8 of Introduction to Algorithms by Cormen et al [p. 191 in the third edition] states:

These algorithms share an interesting property: the sorted order they determine is based only on comparisons between the input elements. We call such sorting algorithms comparison sorts. All the sorting algorithms introduced thus far are comparison sorts.

In section 8.1, we shall prove that any comparison sort must make $\Omega(n \lg n)$ comparisons in the worst case to sort $n$ elements.

More specific question: How would you formulate that statement precisely as a math theorem -- the fact that any comparison sort must make $\Omega(n \lg n)$ comparisons in the worst case. In order to make this rigorous, we must either define precisely what a "comparison sort" is, or else avoid using the term entirely.

Non-measurable sets and sigma-algebra definition

Posted: 01 Dec 2021 10:24 AM PST

I´m starting to study about measure theory, but I have problems regarding the definition of measure space.

In my class we saw that there exists sets that are not measurable(Vitali sets in $\mathbb R$) and in order to avoid this problem we define a sigma-algebra on a set $X$ and we call the elements of $\Sigma$ "measurable sets"

But the problem I have is that how can we guarantee that with this "definition" we cannot construct a non-measurable set. Is there a theorem that says that there can´t be non-measurable sets on a sigma-algebra over $X$ with that definition?

Or I just need to assume that we cannot find such sets over these circumstances?

Finding a vector equation for a trajectory

Posted: 01 Dec 2021 10:04 AM PST

A shell is fired from the ground with muzzle speed of 320 ft/s and elevation angle of 60 degrees (assume $g=32 \, \mbox{ft}/\mbox{s}^2$)

Find a vector equation for the shell's trajectory

I'm not looking for the precise answers but what should i do with this problem? Am i supposed to get the velocity components of x and y? Pls any help would be greatly appreciated

Finding generalized eigenvalues with linear constraints

Posted: 01 Dec 2021 10:02 AM PST

I have a generalized eigenvalue problem $$Mx = \lambda Bx$$ with the additional constraint that $Cx=0$, where $M$ and $B$ are positive-definite and $C$ is a sparse and rectangular.

Is there a simple way of solving for the generalized spectrum $(\lambda,x)$? Conceptually, if I had a way of computing a basis for the nullspace $N$ of $C$, I could simply solve instead the unconstrained generalized eigenvalue problem $$N^TMNy = \lambda N^TBNy$$ for which I have code. However, since $C$ is sparse, computing this $N$ (using, e.g., a SVD) is expensive and I would like to avoid it if a different, more efficient reformulation of the problem is possible.

Recent Questions - English Language & Usage Stack Exchange

Recent Questions - English Language & Usage Stack Exchange


THis is a question regarding the use of "I ,me or mine or myself"

Posted: 01 Dec 2021 07:38 AM PST

What is the correct way to write the following sentence:

It is a favorite past time of my son and I, especially when attending ball games.

Is it "my son and me" or "my son and I" or "my son and myself" or "my son and mine."?

Remove duplicate use of "and" with different strengths?

Posted: 01 Dec 2021 07:36 AM PST

I wrote the following sentence in English:

Part of a development group responsible for releasing security solutions for Google's Security product and investigating devices while understanding their network footprints and integration with other systems.

But when I read it, it doesn't sound too clear or professional. What bothers me the most?

  • The use of "for" twice in one sentence.
  • The use of "and" twice, I want the second use of "and" to feel as more close connection that the first "and" because the main 2 responsiblitis are:
  1. Releasing security solutions for Google's Security product

  2. Investigating devices while understanding their network footprints and integration with other systems.

Can someone help me improve this to add it to my Resume (Is the use of commas correct too)? Thanks in advance.

Is "feed someone" a derogatory expression?

Posted: 01 Dec 2021 06:41 AM PST

I'm not a native English speaker. I'm not sure if the following expressions are offensive:

  • I want to feed you.
  • Please feed me.
  • I found an excellent creator here. Let's feed them!

Because I'm fond of Japanese anime culture. And in manga, the content of feeding someone with some food usually looks cute.

Recently I'm developing an app where users can feed others with foods.

Can I use the word feed to express behaviours like support, sponsor, etc?

Update

Here is one of my use cases (in my app):

Every app user can have a page showing their profile. And there's a panel on the page, where listed some foods and a button having a title named "Feed them". If someone clicked the button, they will be listed on the list named "Feeders" on the same page.

Is this poem grammatically correct and does it suit English poetry structure? [closed]

Posted: 01 Dec 2021 05:47 AM PST

       Anida  

You haven't heard my reply,

coming out from it, a single lie.

Hence, deserves it do not I,

who you are accusing in sinful tie.

Shall my soul be cleaned when I die?

Or gods have turned a blind eye?

My goddess Anida made me cry!

Whom I trusted all hopes my.

I would like to know if the arrangement of words (verbs, etc.) is correct here. Is everything written correctly in terms of English grammar? Please, don't close the question.

About the definition of the word “study”

Posted: 01 Dec 2021 06:01 AM PST

I and some friends were debating about whether the following question is correctly formed or not. Are the multiple choices are accurate and suitable for the question? We all agree that answer number "4" is the correct answer, however ,we are wondering about answer number "3". We believe that when someone is studying , he/she is trying to get information about something. We believe it is a possible answer.

The question is: What is the definition of the following word: Study

  1. easy to see, hear, or understand
  2. to give or be a part of something with other people
  3. to get or discover information about something
  4. Research project
  5. something you bought
  6. say something is good

‘Two people have a baby’ interpretation

Posted: 01 Dec 2021 05:49 AM PST

Why do some people say 'Two people have a baby' can mean 'two people have a baby each' but others say it can't mean 'two people have a baby each' if there's no 'each'?

Two people have a baby.

A: It can mean two people have a baby each.

B: No, it can't mean two people have a baby each unless you use 'each'. It only mean two people have one baby together.

Was unprecedented or is unprecedented?

Posted: 01 Dec 2021 02:54 AM PST

I am writing about the GME short squeeze that happened in January 2021.

At some point, I want to say that short squeezes are nothing new in finance, but the way it was triggered was not seen before.

What would be the correct way to say this?

The way it was triggered was unprecedented.

or

The way it was triggered is unprecedented.

The reason I am asking, is that it is of course still unprecedented, as something that was once unprecedented can not become 'un-unprecedented', right? Using 'was' seems like the right way to go as that really emphasizes that it was unprecedented back than, but I just wanted to be sure if it would be allowed to use it that way.

Is there a term for "inner circumference"?

Posted: 01 Dec 2021 03:30 AM PST

A box will have an outer circumference and a smaller "inner circumference".

Is there a common word or technical term for an "inner circumference"?

This presumes that a "circumference" is typically assumed to be outer, which is my impression.

Urban myth but for non-myths [duplicate]

Posted: 01 Dec 2021 03:13 AM PST

What's some slang for "common public belief" that doesn't have any implications about the truthfulness of the belief?

Similar to "common sense", but I'm looking for a phrase that has more "urban myth" flavour. Not some rationale intrinsic to every human (as common sense might imply), but more so spread by word of mouth or such around the population and established collectively. The word should have the same feeling as "broscience", but not be about the gym specifically.

Street-smarts or street wisdom come to mind, but I haven't found them to be established terms for this. Street-smarts especially seems to have a different meaning, about dealing with danger.

_____ is that being cold weakens your immune system and makes you more susceptible to catching illness

_____ would see you running the other way as soon as ..., but actually....

Is it okay to say that hello what's up you [closed]

Posted: 01 Dec 2021 12:57 AM PST

I donno how to describe this sentence

A word for a person who waits until the next time they see you to tell you something, vs. a person who goes out of their way to tell you right away [closed]

Posted: 30 Nov 2021 11:44 PM PST

For example, if I knocked on someone's bedroom door to ask them for a favour, vs. if I just waited until they came out by themselves and then ask them. What do you call a person like that?

An antonym for 'Gestalt'?

Posted: 01 Dec 2021 02:56 AM PST

Gestalt, as defined by Lexico, is "an organized whole that is perceived as more than the sum of its parts." Is there a word that effectively conveys the opposite, that is, a whole being less than the sum of its parts?

EDIT (1): A potential example may be a large and varied range of overlapping sounds that itself forms a discordant sound, e.g. a variety of instruments played out of rythm.

EDIT (2): Another example may be a 'complete' square, or diamond in this case, formed from two "criss-crosses"(X's), the top and bottom diagonals of which meet one another. Think an individual square of a 'square mesh'. However this square doesn't have clean edges, there still being 2 small projecting lines at each vertice. Think a noughts and crosses board with significantly truncated lines directed out from the square, such that they are too small to be noticed. In this case a square is recognized, however the projecting lines are not, in which case it may be considered less than the sum of its parts.

Is this a correct sentence? Y's vs his [closed]

Posted: 30 Nov 2021 11:09 PM PST

I chose Professor X first because my principal research interests relate greatly to his, and my secondary research interests relate mostly to Professor Y's. My principal research interests revolve around GH. My secondary research interests are in exploring PQ.

I feel there is something wrong with this sentence, but I don't know what, can you give your opinion please?

Instance implies time, but often used as “example” or “case” - what’s a good alternative word without time connection

Posted: 01 Dec 2021 12:24 AM PST

Since instance implies occurrence which implies time, then what are good substitutes other than case or example? Circumstance is also tied to an event which may directly relate to time too.

Hidden messages by reversing speech audio [closed]

Posted: 30 Nov 2021 10:44 PM PST

I want to create an audio file, of a monologue. When playing normally it should sound like a coherent sentence. But, when played in reverse some words would transform into other words. I'm not looking for palindromes, but examples of words that sound like a different word when played in reverse.

edit: I have just discovered Levidrome's. These are words for which the letters can be placed in reverse order to become a different word. However, I seek the spoken word equivalent of this.

Subjunctive "be" inversion

Posted: 01 Dec 2021 05:05 AM PST

Can i invert the protasis bellow :

If you not be, ...

Into :

Be you not, ...

Will it not —in an archaic sense— be mistaken for imperative and will it convey the same conditional notion?

Ad hominem for non persons

Posted: 01 Dec 2021 05:09 AM PST

An ad hominem argument is typically, according to Wikipedia, "a rhetorical strategy where the speaker attacks the character, motive, or some other attribute of the person making an argument rather than attacking the substance of the argument itself." It is in the name that this type of argument is an attack on a person.

What if the entity being attacked is not a person? Perhaps it's a legal entity like a business (and the 'argument' being made is about the quality of their offerings if you want to be pedantic). "The services offered by X are bad because their reviews are bad and they were fined recently for breaking a bunch of regulations." Or "don't trust Y, recall that Y used to be called Z but they rebranded to Y because their reputation was so bad." I'd give a real life example of the latter, but that might be a little... meta.

Does the term ad hominem still apply? Is there a better alternative?

Lord Acton's purported quote about "freedom faces four major challenges" [closed]

Posted: 01 Dec 2021 02:02 AM PST

I read a Chinese article that quoted a passage purported to be from Lord Acton, describing how "freedom faces four major challenges", using google translation (from Chinese back to English) the quotes are like these,

In each era, freedom faces four major challenges:

The strong man's desire for concentration of power,

The poor's resentment of unequal wealth,

The ignorant's yearning for utopia,

The unbelievers's confusion of freedom and indulgence.

And their common root is radicalism

With the comment from @StuartF and the answer I got at History SE. I now believe Lord Acton did not say that. And my question was closed because it was off-topic at this SE. So I am changing it making it appropriate for this site and hope it can be reopened for answer.

I like the googled translated version (even though Lord Action did not say it). I think it speaks about the challenges freedom faces even in present day. But my English is not good enough to make it more natural, more poetic. Can someone help me to do that ?

How to pronounce the "bunched /r/" sound?

Posted: 01 Dec 2021 06:06 AM PST

I don't live in English-speaking country. I try to learn English on my own. I am interested in aquisition the General American accent (GA). My question is about the American /r/ consonant ([ɹ]) and the American r-colored vowels ([ɚ]).

I have a problem with realization of the /r/ English phonem. I know that exist 10-11 or even more options to articulate this sound, but the retroflex and the bunched (aka molar, retracted, dorsal) versions are the most famous. I have learned the retroflex version of this sound. I am OK with the [ɻ], alveolar and postalveolar realizations.
enter image description here

Now my main interest is the bunched /r/. I have tried many times to pronounce this for 3-4 weeks but I can't. I went through all the videos and articles about this topic that I found on the Internet. I have seen the MRI. The tongue tip must not be curl and lift up, the tip of the tongue should be located at the bottom or just neutral. Each time I try the tip my tongue wants to go up. If I hold the tip of my tongue and don't lift it up then I'm making completely different sound.

bunched r 1

So, how to pronounce the clear "bunched /r/" without lifting the tip?

What I've tried: I looked at my mouth with a flashlight in a mirror, I used a pencil, I used a spoon.

Russian language is my native tongue. I don't have speech defects in my native language.

Non-ableist alternative to "blind spot"

Posted: 01 Dec 2021 12:04 AM PST

The phrase "blind spot" has been called ableist. For someone looking to avoid it, what are some good alternatives?

Sample sentences:

  • We need to be aware of our blind spots to make sure a competitor doesn't surprise us in the market.
  • Employee morale has been a blind spot for us in the past, but Sarah is doing a great job of tracking it now.
  • Quentin has good ideas when it comes to pricing strategy, but she has a blind spot when it comes to the best way to present a proposal.

"Such-and-such (a)" + singular noun

Posted: 01 Dec 2021 07:03 AM PST

I've found both versions, She lives in such-and-such a street AND She lives in such-and-such street

Are both uses of the determiner? Which is the right one?

OED entry for such

would a semicolon be appropriate?

Posted: 30 Nov 2021 11:06 PM PST

I'm really struggling with semicolons and I know I need an independent clause after the semicolon but I feel like that makes the whole sentences flow a bit sharp?

would this be correct: "My prior knowledge of this sector was limited; therefore, I was surprised to learn about the different strategies business used to outcompete different firms"

I know I need to get rid of therefore to make it independent but I feel like the vibe of the sentence would change?

please help and thank you!

Is there a term for the first page of a journal or diary where personal info is punched in?

Posted: 01 Dec 2021 03:03 AM PST

Looking for a term (if there is one) for the first page of a journal or personal diary or the page where personal information is filled in.

What word or phrase represents this notion?

Posted: 01 Dec 2021 12:02 AM PST

It is a traditional word or phrase which when used in the context of politics means that a territory or a nation, is capable of sustaining itself and flourishing by virtue of some inherent natural advantage. It is generally used to denote the geopolitical aspect of it, like a nation with lots of fertile land can obviously support more cities and a higher population. Or that a coastal city can trade and make money, and support itself in the process. Eg. The Mediterranean coast forms a ___________, which enabled multiple sovereign power centers to exist historically from Anatolia to Carthage. The western coast of India has for millennia been a ___________, which led to a differential economic development vis-a-vis the Gangetic plains.

How does one properly hyphenate compound adjectives that are locations?

Posted: 01 Dec 2021 01:08 AM PST

Compound adjectives preceding a noun are hyphenated, but how does one properly hyphenate locations? Please include sources.

E.g.

hyphenated, compound adjective: state-of-the-art technology

city, state compound adjective: Denver, Colorado-based company

location with multiple words: Mountain View, California-based company

example options:

  • Denver-Colorado-based

  • Denver, Colorado-based

  • Denver-, Colorado-, based

  • Denver-based, Colorado-based,

OSCHINA 社区最新软件

OSCHINA 社区最新软件


全栈 Web 开发框架 Remix

Posted: 23 Nov 2021 11:06 PM PST

Remix 是一个新的全栈式 JavaScript 框架,它摆脱了静态网站的生成,并且在其他方面做了一些与我们常用的其他框架不同的事情。它依靠 React 来渲染用户界面,如果你熟悉 Next.js,你肯定能发现很多相似之处。但它也有自己的特点,比如嵌套路由、数据获取和数据保存的处理以及错误处理等。 此前 Remix 并非开源项目,其个人和企业许可证的售价分别为每年 250 美元和每年 1000 美元。 创建项目 初始化一个新的 Remix 项目 npx ...

OSCHINA 社区最新专区文章

OSCHINA 社区最新专区文章


还在手动部署jar包吗?快速掌握Jenkins安装,教你使用Jenkins实现持续交付

Posted: 01 Dec 2021 02:48 AM PST

Jenkins Jenkins: 开源软件项目 基于Java开发的一种持续集成工具 用于监控持续重复的工作 旨在提供一个开放易用的软件平台, 便于软件的持续集成 基于Docker安装Jenkins 与持续集成中的GitLab Runner应该分布在不同的服务器上 创建工作目录: /usr/local/docker/jenkins 因为要在docker-compose.yml中使用volumes创建数据卷...

互联网都在讲的敏捷开发,这些敏捷开发流程你都知道吗?

Posted: 01 Dec 2021 02:48 AM PST

需求理解 理解需求背景 确认需求明确,无逻辑遗漏 确认所有需求方案都有实现方案 合理预估时间 需求不明确或者不清晰的点,可以当场提出来,或者稍后整理 快速整理出未实现过的功能,逻辑,技术点,可以和leader一起讨论交流方案 确认验收标准是否完善 确认Story优先级和粒度无疑问,有问题反馈给leader 方案评审 前后端快速整理...

分布式RPC服务调用框架选型:使用Dubbo实现分布式服务调用

Posted: 01 Dec 2021 02:48 AM PST

Dubbo概念 Dubbo是一个高性能,轻量级的RPC分布式服务框架 提供了三核心能力: 面向接口的远程方法调用(@Reference) 智能容错 负载均衡 Dubbo特点: 按照分层的方式来架构,可以使各个层之间解耦合 Dubbo的角色: 提供方:Provider 消费方:Consumer Dubbo的提供非常简单的服务模型,要么是提供方提供服务,要么是消费方消费服务 ...

微服务架构Day17-SpringCloud

Posted: 01 Dec 2021 02:48 AM PST

SpringCloud框架 SpringCloud是基于SpringBoot的微服务框架,提供完整的微服务解决方案. 包括: 服务治理 注册中心 配置管理 熔断器 智能路由 微代理 控制总线 全局锁 分布式session SpringCloud包含众多子项目: SpringCloud config: 分布式配置中心 SpringCloud netflix: 核心组件 Eureka: 服务治理,注册中心 Hystrix: 服...

嵌入式工作流程开发!工作流 Activiti 框架中子流程的使用指南

Posted: 01 Dec 2021 02:48 AM PST

子流程 子流程 描述 子流程(Sub-process)是一个包含其他节点,网关,事件等等的节点 本身就是一个流程,同时是更大流程的一部分.子流程是完全定义在父流程里的,所以叫做内嵌子流程 子流程的两种主要场景: 子流程可以使用继承式建模: 很多建模工具的子流程可以折叠,把子流程的内部细节隐藏,显示一个高级别的端对端的业务流程...

微服务架构Day16-SpringBoot之监控管理

Posted: 01 Dec 2021 02:47 AM PST

监控管理使用步骤 通过引入spring-boot-starter-actuator,可以使用SpringBoot提供应用监控和管理的功能.可以通过HTTP,JMX,SSH协议来进行操作,自动得到审计,健康及指标信息等 引入 spring-boot-starter-actuator 通过http方式访问监控端点 可进行shutdown,POST提交,此端点默认关闭 1.创建SpringBoot项目,引入web包,devtoo...

SpringBoot缓存相关问题

Posted: 01 Dec 2021 02:47 AM PST

框架注解 在写代码时,特别是SpringMVC框架下的代码,在dao层,service层,controller层,开始写代码时,一定要先在类上加@注解 ,切记不能再犯这个小错误. MyBatis与MySQL版本 在使用MyBatis框架连接数据库时,运行程序出现如下异常: java.sql.SQLException: Unknown system variable 原因 mysql-connecter-java的版本过低,很...

分布式文件系统如何做?终于有个人把分布式文件上传讲清楚了

Posted: 01 Dec 2021 02:47 AM PST

FastDFS概念 FastDFS是开源的轻量级分布式文件系统,实现文件管理, 主要功能: 文件存储 文件同步 文件访问(文件上传,文件下载) 解决了大容量存储和负载均衡的问题,特别适合以文件为载体的在线服务:相册网站,视频网站 FastDFS为互联网量身定制,充分考虑了冗余备份,负载均衡,线性扩容等机制,并注重高可用,高性能等指标,使用...

Java中泛型的详细解析,深入分析泛型的使用方式

Posted: 01 Dec 2021 02:47 AM PST

泛型的基本概念 泛型: 参数化类型 参数: 定义方法时有形参 调用方法时传递实参 参数化类型: 将类型由原来的具体的类型参数化,类似方法中的变量参数 类型定义成参数形式, 可以称为类型形参 在使用或者调用时传入具体的类型,可以称为类型实参 泛型的本质是为了参数化类型 在不创建新的类型的情况下,通过泛型指定的不同类型...

带你认识互联网架构的演变过程

Posted: 01 Dec 2021 02:47 AM PST

单体架构(all in one) 所有模块都在一起,技术也不分层。 在单机上部署所有的应用程序和软件。 所有的代码都写在JSP里面,所有代码都写在一起,这种方式称为all in one。 特点: 1.不具备代码的可维护性。 2.容错性差。(容错性是指软件检测应用程序所运行的软件和硬件中发生的错误并从错误中恢复的能力,可以从系统的...

微服务架构Day24-Dubbo之微服务架构要解决的问题

Posted: 01 Dec 2021 02:47 AM PST

微服务中要解决的问题就是解决分布式系统开发中的问题 客户端如何访问大量服务 API Gateway 服务和服务之间如何通信 同步通信 HTTP: Apache Http Client RPC: Dubbo(只支持Java),Apache Thrift,gRPC 异步通信 消息队列: RabbitMQ,RocketMQ,kafka 大量服务如何管理 主要是实现高可用,高并发,高性能 服务治理: 服务注册与发...

注解式项目开发!详细解析Java中各个注解的作用和使用方式

Posted: 01 Dec 2021 02:47 AM PST

@Target 作用: 指明了修饰的这个注解的使用范围, 即被描述的注解可以用在哪里 @Target(ElementType.Type) ElementType取值的类型: TYPE: 类,接口或者枚举 FIELD: 域,包含枚举常量 METHOD: 方法 PARAMETER: 参数 CONSTRUCTOR: 构造方法 LOCAL_VARIABLE: 局部变量 ANNOTATION_TYPE: 注解类型 PACKAGE: 包 @Retention 作用...

初入职场的程序员的学习和提升

Posted: 01 Dec 2021 02:47 AM PST

技术 首先毋庸置疑的就是技术专业能力,这是着重需要提升的。这些都是职场的基础,着重在技术能力上先下功夫。 做好一个技术提升规划,应该规划在一年的时间里打下一个扎实的根基。 软件设计流程 项目立项 产品设计 需求分析 技术方案评审 接口设计 DB设计 开发 单元测试 集成测试 联调 构建 发布 回滚 监控 规范 编码规...

接口服务中的幂等性设计和防重保证,详细分析幂等性的几种实现方法

Posted: 01 Dec 2021 02:47 AM PST

什么是幂等性 幂等性定义: 一次和多次请求某一个资源对于资源本身应该具有同样的结果 任意多次执行对资源本身所产生的影响均与一次执行的影响相同 幂等性定义的几个重点: 幂等不仅仅只是一次或者多次请求对资源没有副作用 比如,查询数据库操作,没有增删改,无论多少次操作对数据库都没有任何影响 幂等还包括第一次请求的时...

深入理解Java中的反射机制和使用原理!详细解析invoke方法的执行和使用

Posted: 01 Dec 2021 02:47 AM PST

反射的概念 反射: Refelection,反射是Java的特征之一,允许运行中的Java程序获取自身信息,并可以操作类或者对象的内部属性 通过反射,可以在运行时获得程序或者程序中的每一个类型的成员活成成员的信息 程序中的对象一般都是在编译时就确定下来,Java反射机制可以动态地创建对象并且调用相关属性,这些对象的类型在编译时是未...

手把手教你从Git上导入项目

Posted: 01 Dec 2021 02:47 AM PST

Git上导入项目 进入Gitlab账户中的项目,点击Clone按钮,复制HTTPS路径。如果配置了SSH,则可以通过SSH导入项目。 在IDEA中,点击VCS-Checkout from Version Control-Git,进入Clone Repository,粘贴项目路径,选择本地项目路径,点击Clone,等待项目导入。 项目导入成功后,更新项目,导入完成。...

单元测试不规范!事后运维两行泪

Posted: 01 Dec 2021 02:47 AM PST

单元测试 好的单元测试应该遵守AIR原则 单元测试在线上运行时,应该感觉像空气(AIR)一样,并不存在,但在测试质量的保障上,确实非常关键的 好的单元测试宏观上来说,具备以下的特点: 自动化(A: Automatic) 独立性(I: Independent) 可重复(R: Repeatable) 单元测试应该是全自动执行的,并且是非交互式的 测试用例通常是被定期执...

Java中有趣的移位操作!彻底弄懂各个移位操作符的使用方式

Posted: 01 Dec 2021 02:47 AM PST

<< <<: 左移运算,左移几位就补几个0 >> >>: 右移运算,为算术右移 如果数字为正数时,移位后在前面补0 如果数字为负数时,移位后在前面补1 >>> >>>: 无符号右移,为逻辑右移.忽略符号,空位补0 无符号右移规则: 忽略了符号位扩展,0补最高位,无符号右移运算符 >>> 只对32位和64位值有意义 如果要移位的数是正数时: 右移和无符号...

干货!攻城狮的交流分享!聊一聊开发人员快速提升自己的方式

Posted: 01 Dec 2021 02:47 AM PST

建立一个实质性的项目 从不同的视角,端点功能触发, 构建具有独特性且能展示开发人员创造力的应用 web后端框架 -了解如何构建框架 利用主要使用的编程语言构建一个程序包,并在多个项目中使用 围绕自己超级感兴趣的事物构建一个更大的项目 构建一个完全超乎你当前理解范围的事物 向开源做贡献 构建自己的开源软件包,应用程...

高质量代码优化!谈谈重构项目中if-else代码的几点建议

Posted: 01 Dec 2021 02:47 AM PST

switch if - else只适合在3层之内使用 当条件判断较多时,可以首先考虑使用switch interface 当判断条件还可能动态增加时,可以考虑将switch进一步优化,引入接口interface,将代码与数据分离: 创建一个map: key: switch的case值 value: 对应的实体类 抽象出通用方法,变成一个接口,统一入参和返回值 主实现类controller类就是...

数据库有关的操作注意点

Posted: 01 Dec 2021 02:47 AM PST

Oracle PLSQL导入数据 在PLSQL中导入数据时,对于数据量比较大的insert的SQL文件,不要使用import table进行数据导入,会导致导入数据失败,不能完整导入所有数据. 应在在Command窗口中使用命令导入: sql>@D:/test.sql; Oracle编码查看与修改 当数据库中的数据中文出现乱码的情况时,原因可能时数据的编码与Oracle数据库的编...

微服务架构Day05-SpringBoot之Servlet

Posted: 01 Dec 2021 02:47 AM PST

旧版 配置嵌入式Servlet容器 SpringBoot默认使用Tomcat作为嵌入式Servlet容器 如何定制和修改Servlet容器相关配置 1.在配置文件中定制和修改Servlet容器有关的配置,本质上是使用SpringBoot的默认的嵌入式Servlet容器的定制器来修改配置. 通用的servlet容器配置 server.xx= 通用的Tomcat配置 server.tomcat.xx= 2.编写一...

全文搜索引擎技术详解之Apache Solr的使用

Posted: 01 Dec 2021 02:47 AM PST

Solr Solr是一个可扩展的,可部署,搜索,存储引擎,优化搜索大量以文本为中心的数据库 Solr是开源搜索平台,用于构建搜索应用程序 建立在Lucene(全文搜索引擎)之上 Solr是企业级的,快速的和高度可扩展的,使用Solr构建的应用程序可以提供高性能,但是非常复杂 Solr可以和Hadoop一起使用:由于Hadoop处理大量数据,Solr可以从大的...

一个使用示例,五个操作步骤!从此轻松掌握项目中工作流的开发

Posted: 01 Dec 2021 02:47 AM PST

创建流程 要想操作Activiti引擎,需要通过org.activiti.engine.ProcessEngine实例暴露的服务.就可以操作一个org.activiti.engine.ProcessEngine 创建一个请假申请的工作业务流程: 发布流程 任何与"静态"资源有关的数据(比如流程定义)都可以通过RepositoryService访问,从概念上讲,所有静态数据都是Activiti的资源内容 在...

Activiti中工作流的生命周期详细解析!一个BPMN流程示例带你认识项目中流程的生命周期

Posted: 01 Dec 2021 02:47 AM PST

BPMN 2.0介绍 业务流程模型注解(BusinessProcess Modeling Notation - BPMN)是业务流程模型的一种标准图形注解.这个标准是由对象管理组(Object Management Group - OMG)维护的 BPMN规范的2.0版本允许添加精确的技术细节在BPMN的图形和元素中,同时制定BPMN元素的执行语法.通过使用XML语言来指定业务流程的可执行语法,BPMN...

Java中类加载器的分析与理解!详细解析类的加载过程

Posted: 01 Dec 2021 02:47 AM PST

类的加载过程 JVM中的类加载过程分为三步: 装载: Load 链接: Link 初始化: Initialize 装载 查找并加载类的二进制数据 链接 验证: 确保加载类的正确性 准备: 为类的静态变量分配内存,将将这些静态变量初始化为默认值 解析: 将类中的符号引用转换为直接引用 之所以要有验证的步骤: 首先如果由编译器生成的class文件,必定符...

认识Java应用的各个层级

Posted: 01 Dec 2021 02:47 AM PST

今天真正写功能的时候,在模仿各个功能模块中的dao,entity,service,web。自己动手写代码的时候,才开始理解各个包中代码的作用。主要是对service,dao层和web中的controller的理解加深了。 dao 我的理解: dao层是在Mybatis框架下通过@MyBatisDao连接后台代码与数据库的,主要对连接了对数据库的操作。 dao层用于定义方...

OSCHINA 社区最新专区文章

OSCHINA 社区最新专区文章


在有道 | 同宇:一个正在老去的程序员

Posted: 30 Nov 2021 04:29 AM PST

——"你想用什么词语来形容自己?" ——"一个正在老去的程序员。" 这次的访谈,我们请到了有道技术团队服务端开发工程师同宇。 在抖音上,他是"有道无霸哥"里的"老大",和作死小弟们斗智斗勇,用标志性的笑容和坚硬的铁拳把整个短视频推向高潮。而在这次访谈里,他则是以一个31岁的程序员身份,平和而深刻地与我...

优秀原创作者访谈 |“车已经在路上了,距离终点越来越近”-浩宇天尚

Posted: 29 Nov 2021 11:41 PM PST

首先恭喜浩宇多次荣登榜首!这次也是OSC作者11月份月度评选"优秀原创作者"的第一名,以下为采访环节: 浩宇天尚 博客地址:https://my.oschina.net/liboware Q1:觉得自己写作能力有哪方面的提升吗? 浩宇天尚:哈哈,个人觉得在归纳总结层面来讲比之前提高了一大截,比如:在写作速度以及内容的规划排版这方面也是,采...

建立合格的跨职能团队,你需要知道这些!

Posted: 29 Nov 2021 05:07 PM PST

在传统组织中有多个部门,它们专门负责特定职能——营销、财务、人力资源、运营等。很多时候,这些部门各自为政,只有在涉及多个部门时才会共享信息。不过,构建和交付软件的现代需求需要能够高速解决大量问题。随之而来的是需要有一个完整的团队来反映提供解决方案的各种专业知识,这就是跨职能团队的用武之地。 什么是...